From 8fc292bc44fa099e22fc870a2b6b08471ec727e6 Mon Sep 17 00:00:00 2001
From: Peter Kessen
Date: Fri, 25 Sep 2015 16:37:39 +0200
Subject: [PATCH] Using LibTestCase instead of TestCase
---
test/test_ui_commands.py | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/test/test_ui_commands.py b/test/test_ui_commands.py
index 60e06a1e1..2b3f2423f 100644
--- a/test/test_ui_commands.py
+++ b/test/test_ui_commands.py
@@ -84,18 +84,12 @@ class QueryTest(_common.TestCase):
self.check_do_query(0, 2, album=True, also_items=False)
-class FieldsTest(_common.TestCase):
+class FieldsTest(_common.LibTestCase):
def setUp(self):
super(FieldsTest, self).setUp()
self.io.install()
- self.libdir = os.path.join(self.temp_dir, 'testlibdir')
- os.mkdir(self.libdir)
-
- # Add a file to the library but don't copy it in yet.
- self.lib = library.Library(':memory:', self.libdir)
-
def tearDown(self):
self.io.restore()