Skip to content

Commit ffc5280

Browse files
committed
fixing pylint warning
Signed-off-by: Vanessa Sochat <[email protected]>
1 parent c7e9e00 commit ffc5280

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

scompose/tests/test_client.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from scompose.project import Project
1010
from scompose.utils import run_command
11+
from time import sleep
1112
import pytest
1213
import tempfile
1314
import shutil
@@ -42,10 +43,9 @@ def test_commands(tmp_path):
4243
print('Testing up')
4344
project.up()
4445
assert 'etc.hosts' in os.listdir()
45-
assert 'db.sqlite3' in os.listdir('app')
4646

47-
# Ensure running
48-
assert requests.get('http://127.0.0.1/').status_code == 200
47+
print('Waiting for instance to start')
48+
sleep(10)
4949

5050
print('Testing logs')
5151
project.logs(['app'], tail=20)
@@ -60,6 +60,11 @@ def test_commands(tmp_path):
6060
print('Testing exec')
6161
project.execute('app', ['echo','MarsBar'])
6262

63+
# Ensure running
64+
assert requests.get('http://127.0.0.1/').status_code == 200
65+
66+
assert 'db.sqlite3' in os.listdir('app')
67+
6368
print('Testing down')
6469
project.down()
6570

scompose/utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def _read_yaml(section, quiet=False):
149149
section: a string of unparsed yaml content.
150150
'''
151151
metadata = {}
152-
docs = yaml.load_all(section)
152+
docs = yaml.load_all(section, Loader=yaml.FullLoader)
153153
for doc in docs:
154154
if isinstance(doc, dict):
155155
for k, v in doc.items():

0 commit comments

Comments
 (0)