From 84e197b209dc1ae0381a02af66a31dade90545fd Mon Sep 17 00:00:00 2001 From: cwandrews Date: Sun, 15 Oct 2017 15:39:23 -0400 Subject: [PATCH] Updated .env >>> .env_one to include in repo (.env ignored). --- .../examples/environment/env_files/.env_one | 3 +++ tests/test_commands.py | 20 +++++++++---------- 2 files changed, 13 insertions(+), 10 deletions(-) create mode 100644 bonobo/examples/environment/env_files/.env_one diff --git a/bonobo/examples/environment/env_files/.env_one b/bonobo/examples/environment/env_files/.env_one new file mode 100644 index 0000000..65f2b17 --- /dev/null +++ b/bonobo/examples/environment/env_files/.env_one @@ -0,0 +1,3 @@ +MY_SECRET=321 +TEST_USER_PASSWORD=sweetpassword +PATH=marzo \ No newline at end of file diff --git a/tests/test_commands.py b/tests/test_commands.py index 59f3db8..3f996cb 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -102,7 +102,7 @@ def test_version(runner, capsys): class TestDefaultEnvFile(object): def test_run_file_with_default_env_file(self, runner, capsys): runner( - 'run', '--quiet', '--default-env-file', '.env', + 'run', '--quiet', '--default-env-file', '.env_one', get_examples_path('environment/env_files/get_passed_env_file.py') ) out, err = capsys.readouterr() @@ -113,7 +113,7 @@ class TestDefaultEnvFile(object): def test_run_file_with_multiple_default_env_files(self, runner, capsys): runner( - 'run', '--quiet', '--default-env-file', '.env', + 'run', '--quiet', '--default-env-file', '.env_one', '--default-env-file', '.env_two', get_examples_path('environment/env_files/get_passed_env_file.py') ) @@ -127,7 +127,7 @@ class TestDefaultEnvFile(object): runner( 'run', '--quiet', '-m', 'bonobo.examples.environment.env_files.get_passed_env_file', - '--default-env-file', '.env' + '--default-env-file', '.env_one' ) out, err = capsys.readouterr() out = out.split('\n') @@ -139,7 +139,7 @@ class TestDefaultEnvFile(object): runner( 'run', '--quiet', '-m', 'bonobo.examples.environment.env_files.get_passed_env_file', - '--default-env-file', '.env', '--default-env-file', '.env_two', + '--default-env-file', '.env_one', '--default-env-file', '.env_two', ) out, err = capsys.readouterr() out = out.split('\n') @@ -154,7 +154,7 @@ class TestEnvFile(object): runner( 'run', '--quiet', get_examples_path('environment/env_files/get_passed_env_file.py'), - '--env-file', '.env', + '--env-file', '.env_one', ) out, err = capsys.readouterr() out = out.split('\n') @@ -166,7 +166,7 @@ class TestEnvFile(object): runner( 'run', '--quiet', get_examples_path('environment/env_files/get_passed_env_file.py'), - '--env-file', '.env', '--env-file', '.env_two', + '--env-file', '.env_one', '--env-file', '.env_two', ) out, err = capsys.readouterr() out = out.split('\n') @@ -178,7 +178,7 @@ class TestEnvFile(object): runner( 'run', '--quiet', '-m', 'bonobo.examples.environment.env_files.get_passed_env_file', - '--env-file', '.env', + '--env-file', '.env_one', ) out, err = capsys.readouterr() out = out.split('\n') @@ -190,7 +190,7 @@ class TestEnvFile(object): runner( 'run', '--quiet', '-m', 'bonobo.examples.environment.env_files.get_passed_env_file', - '--env-file', '.env', '--env-file', '.env_two', + '--env-file', '.env_one', '--env-file', '.env_two', ) out, err = capsys.readouterr() out = out.split('\n') @@ -204,7 +204,7 @@ def test_run_file_with_default_env_file_and_env_file(runner, capsys): runner( 'run', '--quiet', get_examples_path('environment/env_files/get_passed_env_file.py'), - '--default-env-file', '.env', '--env-file', '.env_two', + '--default-env-file', '.env_one', '--env-file', '.env_two', ) out, err = capsys.readouterr() out = out.split('\n') @@ -218,7 +218,7 @@ def test_run_file_with_default_env_file_and_env_file_and_env_vars(runner, capsys runner( 'run', '--quiet', get_examples_path('environment/env_files/get_passed_env_file.py'), - '--default-env-file', '.env', '--env-file', '.env_two', + '--default-env-file', '.env_one', '--env-file', '.env_two', '--env', 'TEST_USER_PASSWORD=SWEETpassWORD', '--env', 'MY_SECRET=444', ) out, err = capsys.readouterr()