Skip to content

Commit

Permalink
test: Add check for verbosity "-vv".
Browse files Browse the repository at this point in the history
  • Loading branch information
badshah400 committed Feb 15, 2024
1 parent afc14bd commit 4c89778
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_basic_latex.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ def test_diff_target_dir(self, tmpdir, datadir):
print(dest)
assert t.tar_file.with_suffix(f".tar.{t.tar_ext}").exists()

def test_verbose_debug(self, datadir):
"""
Test verbose value set by -vv option
"""
t = TarTeX([(Path(datadir) / "basic_latex.tex").as_posix(),
"-vv"])
assert t.args.verbose == 2


# These tests involve repeatedly compiling LaTeX files, thus can be slow
@pytest.mark.slow
Expand Down

0 comments on commit 4c89778

Please sign in to comment.