Skip to content

Commit

Permalink
fix pydantic issues
Browse files Browse the repository at this point in the history
  • Loading branch information
balajtimate committed Nov 1, 2023
1 parent 5fde74a commit c79d9d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions htsinfer/htsinfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,7 @@ def clean_up(self):
def print(self):
"""Print results to STDOUT."""
sys.stdout.write(
self.config.results.json(
self.config.results.model_dump_json(
indent=3,
sort_keys=False,
) + linesep
)
6 changes: 3 additions & 3 deletions tests/test_htsinfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def test_clean_up_keep_none(self, tmpdir):
def test_clean_up_keep_results(self, tmpdir):
"""Remove temporary data."""
arguments = Args(path_1=FILE_MATE_1,
out_dir=tmpdir,
out_dir=tmpdir.strpath,
tmpdir=tmpdir,
)
results = Results()
Expand All @@ -323,8 +323,8 @@ def test_clean_up_keep_results(self, tmpdir):
def test_clean_up_keep_all(self, tmpdir):
"""Remove no data."""
arguments = Args(path_1=FILE_MATE_1,
out_dir=tmpdir,
tmpdir=tmpdir,
out_dir=tmpdir.strpath,
tmpdir=tmpdir.strpath,
)
results = Results()
configs = Config(
Expand Down

0 comments on commit c79d9d6

Please sign in to comment.