Fixed test again
@@ -4,6 +4,7 @@ from conans.errors import ConanException
from cpt.config import ConfigManager
from cpt.printer import Printer
+from cpt.test.integration.base import BaseTest
from cpt.test.unit.packager_test import MockConanAPI
@@ -16,21 +17,24 @@ class RemotesTest(unittest.TestCase):
manager = ConfigManager(self.conan_api, Printer())
manager.install('https://github.com/bincrafters/conan-config.git')
+
+class RemotesTestRealApi(BaseTest):
+
def test_valid_config(self):
- manager = ConfigManager(self.conan_api, Printer())
+ manager = ConfigManager(self.api, Printer())
- profiles = self.conan_api.profile_list()
+ profiles = self.api.profile_list()
self.assertEquals(len(profiles), 0)
manager.install("https://github.com/bincrafters/conan-config.git")
- profiles = self.conan_api.profile_list()
+ profiles = self.api.profile_list()
self.assertGreater(len(profiles), 3)
def test_invalid_config(self):
manager = ConfigManager(self.api, Printer())
- profiles = self.conan_api.profile_list()
+ profiles = self.api.profile_list()
self.assertEquals(len(profiles), 0)
try:
@@ -38,4 +42,3 @@ class RemotesTest(unittest.TestCase):
self.fail("Could not accept wrong URL")
except ConanException:
pass
\ No newline at end of file
-
