aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testsuite/Package.py')
-rw-r--r--tests/testsuite/Package.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/tests/testsuite/Package.py b/tests/testsuite/Package.py
index 52c2405..be9d23f 100644
--- a/tests/testsuite/Package.py
+++ b/tests/testsuite/Package.py
@@ -1,17 +1,14 @@
-import unittest
-import os
+import os, unittest
+from java_config_2.EnvironmentManager import EnvironmentManager
from java_config_2.Package import Package
class TestPackage(unittest.TestCase):
- path = os.path.join(os.path.dirname(__file__), 'packages', '%s/package.env')
-
- def load_package(self, package):
- config = TestPackage.path % package
- return Package(package, config)
def setUp(self):
- self.ant = self.load_package('ant-cores')
+ em = EnvironmentManager(os.path.join(os.path.dirname(__file__), 'test_env'))
+
+ self.ant = em.get_package('ant-cores')
def test_package_info(self):
#using a package we definitely