Skip to content

Commit

Permalink
TST: relax test for audb.Dependencies.__str__()
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw committed May 29, 2024
1 parent 44df511 commit c80cf2e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,11 @@ def test_str(deps):
" archive bit_depth channels ... sampling_rate type version\n" # noqa: E501
"db.files.csv archive1 0 0 ... 0 0 1.0.0\n" # noqa: E501
"file.wav archive2 16 2 ... 16000 1 1.0.0\n" # noqa: E501
"\n"
"[2 rows x 10 columns]"
)
assert str(deps) == expected_str
# Check only the beginning of the returned string,
# as the end might vary,
# see https://github.com/audeering/audb/issues/422
assert str(deps).startswith(expected_str)


# === Test hidden methods ===
Expand Down

0 comments on commit c80cf2e

Please sign in to comment.