Skip to content

Commit c1d84ef

Browse files
committed
Don't create predefined environment.py
1 parent a17fadb commit c1d84ef

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

ctf_cli/application.py

+1-11
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from ctf_cli.config import CTFCliConfig
2525
from ctf_cli.behave import BehaveWorkingDirectory, BehaveRunner
2626
from ctf_cli.exceptions import CTFCliError
27-
from ctf_cli.common_environment import common_environment_py_content, sample_ctl_ctf_config, common_steps_py_content
27+
from ctf_cli.common_environment import sample_ctl_ctf_config, common_steps_py_content
2828

2929

3030
class Application(object):
@@ -66,16 +66,6 @@ def init(self):
6666
os.mkdir(tests_dir)
6767
check_call("git add %s" % tests_dir, shell=True)
6868

69-
env_py_path = os.path.join(tests_dir, "environment.py")
70-
if os.path.exists(env_py_path):
71-
logger.info("File tests/environment.py already exists")
72-
else:
73-
logger.info("Creating environment.py")
74-
# Create environment.py
75-
with open(env_py_path, "w") as f:
76-
f.write(common_environment_py_content)
77-
check_call("git add %s" % env_py_path, shell=True)
78-
7969
features_dir = os.path.join(tests_dir, "features")
8070
if os.path.exists(features_dir):
8171
logger.info("Directory tests/features already exists")

0 commit comments

Comments
 (0)