diff --git a/tests/test_production_build.py b/tests/test_production_build.py index 6eea15a97..d0c3d1e1b 100644 --- a/tests/test_production_build.py +++ b/tests/test_production_build.py @@ -1,8 +1,8 @@ import os +import subprocess + def test_production_check(): - # Construct the absolute path to the manage.py file - manage_py_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "test_project", "manage.py") - - # Assert that the manage.py file exists at the expected path - assert os.path.exists(manage_py_path), f"Expected path {manage_py_path} does not exist." + base_dir = os.getcwd() + manage_py_path = os.path.join(base_dir, "test_project", "manage.py") + subprocess.check_call(['python', manage_py_path, 'check', '--deploy']) \ No newline at end of file