test de test program
This commit is contained in:
parent
73c7c471ea
commit
5cfc6b056b
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,6 +2,7 @@ __pycache__/
|
||||||
*.py[cod]
|
*.py[cod]
|
||||||
|
|
||||||
venv/
|
venv/
|
||||||
|
env/
|
||||||
node_modules/
|
node_modules/
|
||||||
*.egg-info/
|
*.egg-info/
|
||||||
*.egg
|
*.egg
|
||||||
|
|
14
aircox/tests/models/test_program.py
Normal file
14
aircox/tests/models/test_program.py
Normal 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
13356
assets/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
BIN
db.sqlite3
Normal file
BIN
db.sqlite3
Normal file
Binary file not shown.
|
@ -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
|
# Secret key: you MUST put a consistent secret key. You can generate one
|
||||||
# at https://djecrety.ir/
|
# at https://djecrety.ir/
|
||||||
SECRET_KEY = ""
|
SECRET_KEY = "jglkjerlgjreXjgklre"
|
||||||
|
|
||||||
# Database configuration
|
# Database configuration
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
|
@ -42,7 +42,7 @@ DATABASES = {
|
||||||
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
|
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
|
||||||
|
|
||||||
# Allowed host for HTTP requests
|
# Allowed host for HTTP requests
|
||||||
ALLOWED_HOSTS = ("127.0.0.1",)
|
ALLOWED_HOSTS = ("127.0.0.1", "localhost")
|
||||||
|
|
||||||
|
|
||||||
# Assets and medias:
|
# Assets and medias:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user