Commits

Chris Mutel committed 0f67ca2

Some additions to tests

  • Participants
  • Parent commits 70dd24d

Comments (0)

Files changed (3)

brightway2/tests/__init__.py

 # -*- coding: utf-8 -*-
 from base import BW2Test
-from meta import DatabaseTest
+from database import DatabaseTest

brightway2/tests/database.py

+# -*- coding: utf-8 -*-
+from . import BW2Test
+from .. import Database, databases
+from fixtures import food, biosphere
+
+
+class DatabaseTest(BW2Test):
+    def extra_setup(self):
+        d = Database("biosphere")
+        d.register("Tests", [], len(biosphere))
+        d.write(biosphere)
+        d = Database("food")
+        d.register("Tests", ["biosphere"], len(food))
+        d.write(food)
+
+    def test_setup(self):
+        self.assertEqual(len(databases), 2)
+
+    def test_copy(self):
+        pass
+
+    def test_relabel_data(self):
+        pass
+
+    def test_revert(self):
+        pass
+
+    def test_register(self):
+        pass
+
+    def test_load(self):
+        pass
+
+    def test_versions(self):
+        pass

brightway2/tests/meta.py

-# -*- coding: utf-8 -*-
-from . import BW2Test
-from .. import Database, databases
-from fixtures import food, biosphere
-
-
-class DatabaseTest(BW2Test):
-    def extra_setup(self):
-        d = Database("biosphere")
-        d.register("Tests", [], len(biosphere))
-        d.write(biosphere)
-        d = Database("food")
-        d.register("Tests", ["biosphere"], len(food))
-        d.write(food)
-
-    def test_setup(self):
-        self.assertEqual(len(databases), 2)
-
-    def test_copy(self):
-        pass