Skip to content

Commit 70a7ab2

Browse files
committed
test: module1 fixes
1 parent ffdc992 commit 70a7ab2

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ coverage.xml
4646
*.cover
4747
.hypothesis/
4848
.pytest_cache/
49+
.report.json
4950

5051
# Flask stuff:
5152
instance/

tests/test_module1.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,9 @@ def test_app_create_flask_app_module1():
1616
assert 'app' in dir(app), 'Have you created an instance of the `Flask` class called `app`?'
1717
assert isinstance(app.app, app.Flask), '`app` is not an instance of the `Flask` class.'
1818

19-
@pytest.mark.test_templates_folder_module1
20-
def test_templates_folder_module1():
21-
assert os.path.isdir('jobs/templates'), 'The `templates` folder has not been created.'
22-
2319
@pytest.mark.test_index_template_module1
2420
def test_index_template_module1():
21+
assert os.path.isdir('jobs/templates'), 'The `templates` folder has not been created.'
2522
assert template_exists('index'), 'The `index.html` template does not exist in the `templates` folder.'
2623
assert template_find('index', 'h1', limit=1), "The `<h1>` in the `index.html` template does not contain the contents 'Jobs'."
2724
assert template_find('index', 'h1', limit=1)[0].text == 'Jobs', "The `<h1>` in the `index.html` template does not contain the contents 'Jobs'."

0 commit comments

Comments
 (0)