From fd588b207cbf79381e32c1e9872b6259ef23c8c0 Mon Sep 17 00:00:00 2001 From: Andrei Zhlobich Date: Tue, 11 May 2021 10:32:24 +0200 Subject: [PATCH] BAD: broke some code/tests --- bigflow/cli.py | 2 +- bigflow/resources.py | 2 +- test/test_configuration.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bigflow/cli.py b/bigflow/cli.py index d15657f1..44155852 100644 --- a/bigflow/cli.py +++ b/bigflow/cli.py @@ -759,7 +759,7 @@ def cli(raw_args) -> None: operation: str = parsed_args.operation - if operation == 'run': + if operation == 'runXXX': set_configuration_env(parsed_args.config) root_package = find_root_package(project_name, read_project_package(parsed_args)) cli_run(root_package, parsed_args.runtime, parsed_args.job, parsed_args.workflow) diff --git a/bigflow/resources.py b/bigflow/resources.py index 9ef197ae..6ef41bd6 100644 --- a/bigflow/resources.py +++ b/bigflow/resources.py @@ -131,7 +131,7 @@ def create_file_if_not_exists(file_path: Path, body: str) -> Path: return file_path with open(file_path, 'w+') as f: f.write(body) - return file_path + #return file_path @public( diff --git a/test/test_configuration.py b/test/test_configuration.py index 5cd379e9..de6f64ee 100644 --- a/test/test_configuration.py +++ b/test/test_configuration.py @@ -104,7 +104,7 @@ def test_should_resolve_from_master_config_when_property_is_missing(self): .add_configuration('prod', {}) # expect - self.assertEqual(config.resolve('dev'), {'a': 1, 'env': 'dev'}) + self.assertEqual(config.resolve('dev'), {'a': 1, 'env': 'devd'}) self.assertEqual(config.resolve('prod'), {'a': 1, 'env': 'prod'}) def test_should_use_bg_as_the_default_environment_variables_prefix(self):