Skip to content

Commit

Permalink
scrutinizer config fix 5
Browse files Browse the repository at this point in the history
  • Loading branch information
KissPeter committed Jan 3, 2020
1 parent b147f61 commit 76948e7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ build:
test-setup:
project_setup:
before:
- command: pip3 install -r test/requirements_for_test.txt && python3 test/test_application.py
- command: 'pip3 install -r test/requirements_for_test.txt && python3 test/test_application.py'
background: true
test:
commands:
- command: pip3 install -r test/requirements_for_test.txt && cd test && pytest --durations=10 --show-capture=stdout -v -rP test.py
- command: 'pip3 install -r test/requirements_for_test.txt && cd test && pytest --durations=10 --show-capture=stdout -v -rP test.py'
filter:
excluded_paths:
- "test/"
18 changes: 9 additions & 9 deletions test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ def setup_class(cls):
cls.report_files = list()
cls.test_app_url = "http://127.0.0.1:5000/"
print('Setup_class with report dir: {}'.format(cls.report_dir))
if len(get_test_server_pid("Setup")) < 1:
Popen(["python3", "./test_application.py", "2>&1", "|", "logger -t $0"], stdout=None, stderr=None,
shell=True)
# if len(get_test_server_pid("Setup")) < 1:
# Popen(["python3", "./test_application.py", "2>&1", "|", "logger -t $0"], stdout=None, stderr=None,
# shell=True)
with open('./test_swagger_definition.json', 'r') as f:
cls.swagger = json.loads(f.read())

Expand All @@ -37,12 +37,12 @@ def teardown_method(self, method):
for f in self.report_files:
os.remove('{}/{}'.format(self.report_dir, f))

@classmethod
def teardown_class(cls):
"""
Stops the test application at the end of the test run
"""
stop_test_server()
# @classmethod
# def teardown_class(cls):
# """
# Stops the test application at the end of the test run
# """
# stop_test_server()

def query_last_call(self):
"""
Expand Down

0 comments on commit 76948e7

Please sign in to comment.