mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-10 23:14:52 +03:00
revert
This commit is contained in:
commit
bbe68f77d4
|
@ -1,8 +1,8 @@
|
||||||
import os
|
import os
|
||||||
|
import subprocess
|
||||||
|
|
||||||
|
|
||||||
def test_production_check():
|
def test_production_check():
|
||||||
# Construct the absolute path to the manage.py file
|
base_dir = os.getcwd()
|
||||||
manage_py_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "test_project", "manage.py")
|
manage_py_path = os.path.join(base_dir, "test_project", "manage.py")
|
||||||
|
subprocess.check_call(['python', manage_py_path, 'check', '--deploy'])
|
||||||
# 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."
|
|
Loading…
Reference in New Issue
Block a user