Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
Fix tests after adding 'params' argument
Browse files Browse the repository at this point in the history
  • Loading branch information
goldmann committed May 2, 2017
1 parent 6b74adf commit a09be91
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tests/test_dockerfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def setUp(self):
os.mkdir(self.target)
self.args = argparse.Namespace(path=self.yaml, output=self.target, without_sources=None,
template=None, scripts_path=None, additional_script=None,
skip_ssl_verification=None)
skip_ssl_verification=None, params={})
with open(self.yaml, 'wb') as f:
f.write(self.basic_config.encode())

Expand Down
2 changes: 1 addition & 1 deletion tests/test_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def write_config(self, config):
def prepare_dogen(self, repo_files_dir=None):
args = argparse.Namespace(path=self.descriptor.name, output=self.target_dir, without_sources=None,
template=None, scripts_path=None, additional_script=None,
skip_ssl_verification=None, repo_files_dir=repo_files_dir)
skip_ssl_verification=None, repo_files_dir=repo_files_dir, params={})
self.dogen = Generator(self.log, args, [Repo])

def test_custom_repo_files_should_add_two(self):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_plugin_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def write_config(self, config):
def prepare_dogen(self, repo_files_dir=None):
args = argparse.Namespace(path=self.descriptor.name, output=self.target_dir, without_sources=None,
template=None, scripts_path=None, additional_script=None,
skip_ssl_verification=None, repo_files_dir=repo_files_dir)
skip_ssl_verification=None, repo_files_dir=repo_files_dir, params={})
self.dogen = Generator(self.log, args, [Repo])

def test_should_skip_plugin_if_no_path_to_repo_is_provided(self):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def gen_test(path, good):
def test(self):
args = argparse.Namespace(path=path, output="target", without_sources=None,
template=None, scripts_path=None, additional_script=None,
skip_ssl_verification=None)
skip_ssl_verification=None, params={})
generator = Generator(self.log, args)
if good:
generator.configure()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_unit_generate_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def setUp(self):
self.descriptor.write(self.basic_config.encode())
self.args = argparse.Namespace(path=self.descriptor.name, output="target", without_sources=False,
template=None, scripts_path=None, additional_script=None,
skip_ssl_verification=None)
skip_ssl_verification=None, params={})
def tearDown(self):
os.remove(self.descriptor.name)

Expand Down
8 changes: 4 additions & 4 deletions tests/test_unit_generate_handle_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def setUp(self):
self.log = mock.Mock()
args = argparse.Namespace(path="image.yaml", output="target", without_sources=None,
template=None, scripts_path=None, additional_script=None,
skip_ssl_verification=None)
skip_ssl_verification=None, params={})
self.generator = Generator(self.log, args)

def test_local_file(self):
Expand All @@ -29,7 +29,7 @@ def setUp(self):
self.log = mock.Mock()
args = argparse.Namespace(path="image.yaml", output="target", without_sources=None,
template=None, scripts_path=None, additional_script=None,
skip_ssl_verification=None)
skip_ssl_verification=None, params={})
self.generator = Generator(self.log, args)

@mock.patch('dogen.generator.requests.get')
Expand Down Expand Up @@ -72,13 +72,13 @@ def setUp(self):
self.log = mock.Mock()
args = argparse.Namespace(path="image.yaml", output="target", without_sources=None,
template="http://host/custom-template", scripts_path=None,
additional_script=None, skip_ssl_verification=None)
additional_script=None, skip_ssl_verification=None, params={})
self.generator = Generator(self.log, args)

def test_do_not_fail_if_no_template_is_provided(self):
args = argparse.Namespace(path="image.yaml", output="target", without_sources=None,
template=None, scripts_path=None, additional_script=None,
skip_ssl_verification=None)
skip_ssl_verification=None, params={})
self.generator = Generator(self.log, args)

fetch_file_mock = mock.Mock()
Expand Down

0 comments on commit a09be91

Please sign in to comment.