From 82acec87b69e566daa131522f08a881357ce3832 Mon Sep 17 00:00:00 2001 From: Leo Hemsted Date: Tue, 28 Nov 2017 17:23:50 +0000 Subject: [PATCH] flake8 the entire repo now that the tests are good :ok_hand: --- scripts/run_tests.sh | 3 +-- tests/app/template/test_rest.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/run_tests.sh b/scripts/run_tests.sh index d58c98b22..8f5c41561 100755 --- a/scripts/run_tests.sh +++ b/scripts/run_tests.sh @@ -27,8 +27,7 @@ function display_result { if [[ -z "$VIRTUAL_ENV" ]] && [[ -d venv ]]; then source ./venv/bin/activate fi -echo -e "\033[31mWARNING. NOT RUNNING flake8 AGAINST TEST DIRECTORY DUE TO LARGE AMOUNT OF EXISTING ISSUES.\033[0m" -flake8 app/ +flake8 . display_result $? 1 "Code style check" # run with four concurrent threads diff --git a/tests/app/template/test_rest.py b/tests/app/template/test_rest.py index e0394f860..68987f4b6 100644 --- a/tests/app/template/test_rest.py +++ b/tests/app/template/test_rest.py @@ -308,7 +308,7 @@ def test_should_be_able_to_get_all_templates_for_a_service(client, sample_user, assert update_json_resp['data'][1]['created_at'] -def test_should_get_only_templates_for_that_service(admin_request, notify_db_sesision): +def test_should_get_only_templates_for_that_service(admin_request, notify_db_session): service_1 = create_service(service_name='service_1') service_2 = create_service(service_name='service_2') id_1 = create_template(service_1).id