Skip to content

Commit

Permalink
update tests after renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
fbdtemme committed Jul 19, 2023
1 parent 85c01a8 commit 66ce71f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_params_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def teardown_class(cls):

def test_build_template(self):
outfile = os.path.join(self.tmp_dir, "params-file.yml")
self.params_template_builder.write_template(outfile)
self.params_template_builder.write_params_file(outfile)

assert os.path.exists(outfile)

Expand All @@ -58,7 +58,7 @@ def test_build_template_invalid_schema(self, caplog):
"""Build a schema from a template"""
outfile = os.path.join(self.tmp_dir, "params-file-invalid.yml")
builder = ParamsFileBuilder(self.invalid_template_schema)
res = builder.write_template(outfile)
res = builder.write_params_file(outfile)

assert res is False
assert "Pipeline schema file is invalid" in caplog.text
Expand All @@ -71,7 +71,7 @@ def test_build_template_file_exists(self, caplog):
with open(outfile, "w") as fp:
pass

res = self.params_template_builder.write_template(outfile)
res = self.params_template_builder.write_params_file(outfile)

assert res is False
assert f"File '{outfile}' exists!" in caplog.text
Expand Down

0 comments on commit 66ce71f

Please sign in to comment.