Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix matcher typo #5589

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion beets/test/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,13 +481,13 @@

# Take a backup of the original _types and _queries to restore
# when unloading.
Item._original_types = dict(Item._types)

Check failure on line 484 in beets/test/helper.py

View workflow job for this annotation

GitHub Actions / Check types with mypy

"type[Item]" has no attribute "_original_types"
Album._original_types = dict(Album._types)

Check failure on line 485 in beets/test/helper.py

View workflow job for this annotation

GitHub Actions / Check types with mypy

"type[Album]" has no attribute "_original_types"
Item._types.update(beets.plugins.types(Item))
Album._types.update(beets.plugins.types(Album))

Item._original_queries = dict(Item._queries)

Check failure on line 489 in beets/test/helper.py

View workflow job for this annotation

GitHub Actions / Check types with mypy

"type[Item]" has no attribute "_original_queries"
Album._original_queries = dict(Album._queries)

Check failure on line 490 in beets/test/helper.py

View workflow job for this annotation

GitHub Actions / Check types with mypy

"type[Album]" has no attribute "_original_queries"
Item._queries.update(beets.plugins.named_queries(Item))
Album._queries.update(beets.plugins.named_queries(Album))

Expand Down Expand Up @@ -675,7 +675,7 @@
>>> importer.run()

This imports ``/path/to/import`` into `lib`. It skips the first
album and imports thesecond one with metadata from the tags. For the
album and imports the second one with metadata from the tags. For the
remaining albums, the metadata from the autotagger will be applied.
"""

Expand Down
2 changes: 1 addition & 1 deletion test/plugins/test_importadded.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def setUp(self):
os.path.getmtime(mfile.path) for mfile in self.import_media
)
self.matcher = AutotagStub().install()
self.matcher.macthin = AutotagStub.GOOD
self.matcher.matching = AutotagStub.IDENT
self.importer = self.setup_importer()
self.importer.add_choice(importer.action.APPLY)

Expand Down
2 changes: 1 addition & 1 deletion test/test_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ def setUp(self):
self.prepare_album_for_import(1)
self.setup_importer()
self.matcher = AutotagStub().install()
self.matcher.macthin = AutotagStub.GOOD
self.matcher.matching = AutotagStub.IDENT

def tearDown(self):
super().tearDown()
Expand Down
Loading