diff --git a/backend/pyproject.toml b/backend/pyproject.toml index eaabfa47..ef780704 100644 --- a/backend/pyproject.toml +++ b/backend/pyproject.toml @@ -91,7 +91,11 @@ ignore = [ "PLR0913", # Too many arguments in function "FBT001", # Boolean-typed positional argument in function dfinition "FBT002", - "B008" + "B008", + "PT009", + "PT027", + "FBT003", + "DTZ005", ] # Allow fix for all enabled rules (when `--fix`) is provided. diff --git a/backend/tests/teachers_test.py b/backend/tests/teachers_test.py deleted file mode 100644 index af30bf49..00000000 --- a/backend/tests/teachers_test.py +++ /dev/null @@ -1,27 +0,0 @@ -import json -import unittest -from http import HTTPStatus - -from fastapi.testclient import TestClient - -from app import app - - -class LesgeverTestCase(unittest.TestCase): - def setUp(self) -> None: - self.app = TestClient(app) - - - def test_create_teacher_bad_request(self) -> None: - response = self.app.post("/teachers", data={}) - assert response.status_code == HTTPStatus.BAD_REQUEST - assert "error" in json.loads(response.data) - - def test_create_teacher_success(self) -> None: - teacher_data = {"name": "Bart De Bruyn"} - response = self.app.post("/teachers", data=teacher_data) - assert response.status_code == HTTPStatus.CREATED - - -if __name__ == "__main__": - unittest.main() diff --git a/backend/tests/test_edge_cases.py b/backend/tests/test_edge_cases.py new file mode 100644 index 00000000..e69de29b diff --git a/backend/tests/test_main.py b/backend/tests/test_main.py new file mode 100644 index 00000000..e69de29b diff --git a/backend/tests/test_project.py b/backend/tests/test_project.py new file mode 100644 index 00000000..e69de29b diff --git a/backend/tests/test_stress.py b/backend/tests/test_stress.py new file mode 100644 index 00000000..e69de29b diff --git a/backend/tests/test_student.py b/backend/tests/test_student.py new file mode 100644 index 00000000..e69de29b diff --git a/backend/tests/test_subject.py b/backend/tests/test_subject.py new file mode 100644 index 00000000..e69de29b diff --git a/backend/tests/test_submission.py b/backend/tests/test_submission.py new file mode 100644 index 00000000..e69de29b diff --git a/backend/tests/test_teacher.py b/backend/tests/test_teacher.py new file mode 100644 index 00000000..e69de29b