Skip to content

Commit

Permalink
Update test code
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw committed Jan 17, 2025
1 parent 4c85fb8 commit 2aa7fda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ def test_update(tmpdir):
for file in db.attachments[attachment_id].files:
assert os.path.exists(os.path.join(db.root, file))
if file in expected_content:
with open(audeer.path(db.root, file), "r") as fp:
with open(audeer.path(db.root, file)) as fp:
assert fp.read() == expected_content[file]

# test media files
Expand Down
2 changes: 1 addition & 1 deletion tests/test_scheme.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def test_scheme_errors():
# labels not list or dictionary
error_msg = "Labels must be passed " "as a dictionary, list or ID of a misc table."
with pytest.raises(ValueError, match=error_msg):
audformat.Scheme(labels=set([1, 2, 3]))
audformat.Scheme(labels={1, 2, 3})

# labels do not have the same type
error_msg = "All labels must be of the same data type."
Expand Down

0 comments on commit 2aa7fda

Please sign in to comment.