diff --git a/api/funkwhale_api/common/search.py b/api/funkwhale_api/common/search.py index 5fc6f6804ca4c5e5289fb224c6e9adce503be978..70aecd632f6e77109dc3e8d51e06695acd19d6cf 100644 --- a/api/funkwhale_api/common/search.py +++ b/api/funkwhale_api/common/search.py @@ -3,7 +3,7 @@ import re from django.db.models import Q -QUERY_REGEX = re.compile('(((?P<key>\w+):)?(?P<value>"[^"]+"|[\S]+))') +QUERY_REGEX = re.compile(r'(((?P<key>\w+):)?(?P<value>"[^"]+"|[\S]+))') def parse_query(query): diff --git a/api/tests/test_import_audio_file.py b/api/tests/test_import_audio_file.py index ce6aebbc3bcdd980207c22b70bc5615bbe780905..c6b8aea60e59b084edff401d25ff2af163f3f756 100644 --- a/api/tests/test_import_audio_file.py +++ b/api/tests/test_import_audio_file.py @@ -134,7 +134,7 @@ def test_import_files_skip_if_path_already_imported(factories, mocker): ) call_command( - "import_files", str(library.uuid), path, async=False, interactive=False + "import_files", str(library.uuid), path, async_=False, interactive=False ) assert library.uploads.count() == 1