Skip to content

Commit

Permalink
fix black
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrai2 committed May 15, 2024
1 parent 4d7d5d7 commit 82d939f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/test_g2b.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ def test_cli_raises_on_non_existing_input_file(self, tmp_path):
command = f"-i test.gnucash -o book.beancount -c {config_path}"
result = self.cli_runner.invoke(main, command.split())
assert result.exit_code == 2, f"{result.exc_info}"
assert re.match(
r".*Path 'test.gnucash' does not exist.*", result.output, flags=re.DOTALL
)
assert re.match(r".*Path 'test.gnucash' does not exist.*", result.output, flags=re.DOTALL)

def test_cli_raises_on_non_existing_config_file(self, tmp_path):
gnucash_path = tmp_path / "book.gnucash"
Expand Down Expand Up @@ -372,4 +370,4 @@ def test_read_book_raises_on_wrong_file_format(self, tmp_path):
gnucash_file.write_text("wrong format")
g2b = GnuCash2Beancount(gnucash_file, Path(), config_path)
with pytest.raises(G2BException, match="File does not exist or wrong format exception.*"):
g2b._read_gnucash_book()
g2b._read_gnucash_book()

0 comments on commit 82d939f

Please sign in to comment.