test de test program

This commit is contained in:
wintz 2023-05-11 17:23:03 +02:00
parent 73c7c471ea
commit 5cfc6b056b
5 changed files with 13373 additions and 2 deletions

1
.gitignore vendored
View File

@ -2,6 +2,7 @@ __pycache__/
*.py[cod]
venv/
env/
node_modules/
*.egg-info/
*.egg

View File

@ -0,0 +1,14 @@
import pytest
from aircox.models import Station, Program
class TestProgramQuerySet:
@pytest.mark.django_db
def test_station(self, stations, programs):
prog = Program.objects.station(station=stations[0])
assert programs[0] in prog
class TestProgram:
@pytest.mark.django_db
def test_station(self, stations):
pass

13356
assets/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

BIN
db.sqlite3 Normal file

Binary file not shown.

View File

@ -29,7 +29,7 @@ TIME_ZONE = os.environ.get("TZ") or "UTC"
# Secret key: you MUST put a consistent secret key. You can generate one
# at https://djecrety.ir/
SECRET_KEY = ""
SECRET_KEY = "jglkjerlgjreXjgklre"
# Database configuration
DATABASES = {
@ -42,7 +42,7 @@ DATABASES = {
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
# Allowed host for HTTP requests
ALLOWED_HOSTS = ("127.0.0.1",)
ALLOWED_HOSTS = ("127.0.0.1", "localhost")
# Assets and medias: