Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
Use test config. Test rule system separately
Browse files Browse the repository at this point in the history
  • Loading branch information
redvox committed Dec 8, 2016
1 parent 144cffd commit 9e1d61b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions resources/test.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
{
"app": {
"live": {
"no_restriction": {
"hours_range": [
0,
24
],
"days_range": [
0,
6
]
}
},
"develop": {
"no_restriction": {
"hours_range": [
Expand Down
2 changes: 1 addition & 1 deletion tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -775,4 +775,4 @@ def test_api_set_note_non_existing_gate(self):
unittest.main()

if (__name__ == 'test_api') or (__name__ == 'tests.test_api'):
environment = 'local'
environment = 'test'
2 changes: 1 addition & 1 deletion tests/test_business_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,4 @@ def test_global_rules_weekend(self):
unittest.main()

if (__name__ == 'test_business_rules') or (__name__ == 'tests.test_business_rules'):
environment = 'local'
environment = 'test'

0 comments on commit 9e1d61b

Please sign in to comment.