From fdb0b4a12b23c7abffbbc2d871d3356a5349d178 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Wed, 22 Jul 2015 19:39:39 +0200 Subject: [PATCH] file: Add tests --- tests/file/__init__.py | 0 tests/file/conftest.py | 18 ++++++++++++++++++ tests/file/test_browse.py | 1 + tests/file/test_lookup.py | 1 + 4 files changed, 20 insertions(+) create mode 100644 tests/file/__init__.py create mode 100644 tests/file/conftest.py create mode 100644 tests/file/test_browse.py create mode 100644 tests/file/test_lookup.py diff --git a/tests/file/__init__.py b/tests/file/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/tests/file/conftest.py b/tests/file/conftest.py new file mode 100644 index 00000000..c93a71f2 --- /dev/null +++ b/tests/file/conftest.py @@ -0,0 +1,18 @@ +from __future__ import unicode_literals + +import pytest + +from mopidy.file import library + + +@pytest.fixture +def file_config(): + return { + 'file': { + } + } + + +@pytest.fixture +def file_library(file_config): + return library.FileLibraryProvider(backend=None, config=file_config) diff --git a/tests/file/test_browse.py b/tests/file/test_browse.py new file mode 100644 index 00000000..baffc488 --- /dev/null +++ b/tests/file/test_browse.py @@ -0,0 +1 @@ +from __future__ import unicode_literals diff --git a/tests/file/test_lookup.py b/tests/file/test_lookup.py new file mode 100644 index 00000000..baffc488 --- /dev/null +++ b/tests/file/test_lookup.py @@ -0,0 +1 @@ +from __future__ import unicode_literals