From 949df426f3f280eef77505221cb68561a84931d2 Mon Sep 17 00:00:00 2001 From: Crypto400600 Date: Thu, 6 Sep 2018 12:48:57 -0600 Subject: [PATCH] test: module1 fixes --- .gitignore | 1 + tests/test_module1.py | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index e711533..cdefa97 100644 --- a/.gitignore +++ b/.gitignore @@ -46,6 +46,7 @@ coverage.xml *.cover .hypothesis/ .pytest_cache/ +.report.json # Flask stuff: instance/ diff --git a/tests/test_module1.py b/tests/test_module1.py index 7f9c102..645d83c 100644 --- a/tests/test_module1.py +++ b/tests/test_module1.py @@ -16,12 +16,9 @@ def test_app_create_flask_app_module1(): assert 'app' in dir(app), 'Have you created an instance of the `Flask` class called `app`?' assert isinstance(app.app, app.Flask), '`app` is not an instance of the `Flask` class.' -@pytest.mark.test_templates_folder_module1 -def test_templates_folder_module1(): - assert os.path.isdir('jobs/templates'), 'The `templates` folder has not been created.' - @pytest.mark.test_index_template_module1 def test_index_template_module1(): + assert os.path.isdir('jobs/templates'), 'The `templates` folder has not been created.' assert template_exists('index'), 'The `index.html` template does not exist in the `templates` folder.' assert template_find('index', 'h1', limit=1), "The `

` in the `index.html` template does not contain the contents 'Jobs'." assert template_find('index', 'h1', limit=1)[0].text == 'Jobs', "The `

` in the `index.html` template does not contain the contents 'Jobs'."