-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #108 As testbot I would like to enable and disable languages
- Loading branch information
1 parent
c5b278a
commit 9c6fbc9
Showing
4 changed files
with
58 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import pytest | ||
|
||
from tests.integration.utils import run_commander | ||
|
||
|
||
@pytest.mark.integration | ||
def test_enable_language(session): | ||
session.update_one('sys_Language', 'nl', 'active', True) | ||
|
||
run_commander('disable language nl') | ||
assert session.get_by_id('sys_Language', 'nl')['active'] is False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import pytest | ||
|
||
from tests.integration.utils import run_commander | ||
|
||
|
||
@pytest.mark.integration | ||
def test_enable_language(session): | ||
session.update_one('sys_Language', 'nl', 'active', False) | ||
|
||
run_commander('enable language nl') | ||
assert session.get_by_id('sys_Language', 'nl')['active'] is True | ||
|
||
# cleanup | ||
session.update_one('sys_Language', 'nl', 'active', False) |