Move API tests into a package

Mirroring the structure of the code being tested
This commit is contained in:
Bruno Alla 2024-12-31 13:18:39 +00:00
parent 5b4e769354
commit 683f207d4a
5 changed files with 1 additions and 3 deletions

View File

@ -433,9 +433,7 @@ def remove_aws_dockerfile():
def remove_drf_starter_files():
os.remove(os.path.join("config", "api_router.py"))
shutil.rmtree(os.path.join("{{cookiecutter.project_slug}}", "users", "api"))
os.remove(os.path.join("{{cookiecutter.project_slug}}", "users", "tests", "test_drf_urls.py"))
os.remove(os.path.join("{{cookiecutter.project_slug}}", "users", "tests", "test_drf_views.py"))
os.remove(os.path.join("{{cookiecutter.project_slug}}", "users", "tests", "test_swagger.py"))
shutil.rmtree(os.path.join("{{cookiecutter.project_slug}}", "users", "tests", "api"))
def main():