Skip to content

Commit

Permalink
data nodig voor de testen
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnoutAllaert committed Mar 13, 2024
1 parent 926e31b commit a06867a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ venv
migrations
.env
htmlcov
data
data
uploads
4 changes: 2 additions & 2 deletions api/tests/serializers/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def test_validation_for_blank_items(self):

def test_create(self):
vak = VakFactory.create().vak_id
with open("api/tests/data/test.txt", "rb") as fp:
with open("api/tests/testdata/test.txt", "rb") as fp:
data = {
"titel": "test project",
"beschrijving": "Dit is een test project.",
Expand All @@ -84,7 +84,7 @@ def test_create(self):
self.assertEqual(project.deadline, parse(data["deadline"]))

def test_update(self):
with open("api/tests/data/test.txt", "rb") as fp:
with open("api/tests/testdata/test.txt", "rb") as fp:
data = {
"titel": "test project",
"beschrijving": "Dit is een test project.",
Expand Down
1 change: 1 addition & 0 deletions api/tests/testdata/test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hallo, dit is mijn eerste tekst bestand.
2 changes: 1 addition & 1 deletion api/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
path("api/scores/", score_list),
path("api/scores/<int:id>/", score_detail),
path("api/groepen/", groep_list),
path("api/groepen/<int:id>/", groep_detail, naam="groep_detail"),
path("api/groepen/<int:id>/", groep_detail, name="groep_detail"),
]

urlpatterns = format_suffix_patterns(urlpatterns)

0 comments on commit a06867a

Please sign in to comment.