Skip to content

Commit 76017f0

Browse files
committed
hello smoke test
1 parent 990f680 commit 76017f0

File tree

5 files changed

+24
-0
lines changed

5 files changed

+24
-0
lines changed

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
isort:
2+
isort .
3+
style:
4+
flake8 .
5+
types:
6+
mypy .
7+
test:
8+
cd landing_page; pytest .
9+
check:
10+
make isort style types test

landing_page/tests/__init__.py

Whitespace-only changes.

landing_page/tests/test_index.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import pytest
2+
from django.test import Client
3+
4+
5+
@pytest.mark.django_db
6+
def test__index__shows_up(client: Client) -> None:
7+
response = client.get('/')
8+
assert response.status_code == 200

requirements-dev.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
flake8==6.1.0
33
mypy==1.5.0
44
isort==5.12.0
5+
pytest==7.4.0
6+
pytest-django==4.5.2

setup.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,7 @@ use_parentheses = true
2222
known_first_party = learn_bot
2323
line_length = 120
2424
multi_line_output = 3
25+
26+
27+
[tool:pytest]
28+
DJANGO_SETTINGS_MODULE = landing_page.settings

0 commit comments

Comments
 (0)