Skip to content
Snippets Groups Projects
Verified Commit f949d88c authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Add first pytest based test.

parent b6a878b6
No related branches found
No related tags found
No related merge requests found
from django.test import TestCase
from biscuit.core.models import Person
class PersonTestCase(TestCase):
def setUp(self):
self._person = Person.objects.create(
first_name='Jane',
last_name='Doe'
)
def test_full_name(self):
assert self._person.full_name == 'Doe, Jane'
......@@ -64,6 +64,9 @@ pylama = "^7.7"
radon = "^3.0"
mypy = "^0.720.0"
django-stubs = "^1.1"
pytest = "^5.3"
pytest-django = "^3.7"
pytest-django-testing-postgresql = "^0.1"
[build-system]
requires = ["poetry>=0.12"]
......
......@@ -22,3 +22,6 @@ plugins = mypy_django_plugin.main
[mypy.plugins.django-stubs]
django_settings_module = biscuit.core.settings
[pytest]
DJANGO_SETTINGS_MODULE = biscuit.core.settings
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment