If deploying a single app, return the App instead of a list
[osm/N2VC.git] / tests / client / test_connection.py
index 187dcb0..18b5863 100644 (file)
@@ -1,22 +1,8 @@
 import asyncio
 import unittest
-import subprocess
-
-import pytest
 
 from juju.client.connection import Connection
-
-
-def is_bootstrapped():
-    result = subprocess.run(['juju', 'switch'], stdout=subprocess.PIPE)
-    print(result.stdout)
-    return (
-        result.returncode == 0 and
-        len(result.stdout.decode().strip()) > 0)
-
-bootstrapped = pytest.mark.skipif(
-    not is_bootstrapped(),
-    reason='bootstrapped Juju environment required')
+from ..base import bootstrapped
 
 
 @bootstrapped