Skip to content

Move commonenv into file - #32

Closed
jmtd wants to merge 1 commit into
Containers-Testing-Framework:masterfrom
jmtd:jdowland-commonenv-into-file
Closed

jmtd wants to merge 1 commit into
Containers-Testing-Framework:masterfrom
jmtd:jdowland-commonenv-into-file

Conversation

@jmtd

@jmtd jmtd commented Jun 5, 2015

Copy link
Copy Markdown
Contributor

Warning: I've only tested this on top of a different tip (a bit behind master) so this should be looked at carefully before merging!

This resolves issue #3 , although I've only addressed common_environment_py_content, not common_steps_py_content or other bits from that file.

Thanks to @L-D-J for the hint as to how to do this!

Convert common_environment_py_content (string) into a first-class
python file common_environment_content.py and use the module's
__path__ to locate and read its contents.

This means one can edit common_environment_content with full syntax
highlighting and run tests against it, etc.
@jmtd
jmtd force-pushed the jdowland-commonenv-into-file branch from 9729cca to 5ae4b7a Compare June 5, 2015 09:04
@landscape-bot

Copy link
Copy Markdown

Code Health
Repository health decreased by 3% when pulling 5ae4b7a on jmtd:jdowland-commonenv-into-file into c12eab7 on Containers-Testing-Framework:development.

@vrutkovs

vrutkovs commented Jun 5, 2015

Copy link
Copy Markdown
Member

https://github.com/jmtd/ctf-cli/blob/jdowland-commonenv-into-file/ctf_cli/application.py#L27 still refers to common_environment_py_content

In https://github.com/jmtd/ctf-cli/blob/jdowland-commonenv-into-file/ctf_cli/application.py#L69 we should not create a new environment.py if it doesn't exist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants