File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 88
99from scompose .project import Project
1010from scompose .utils import run_command
11+ from time import sleep
1112import pytest
1213import tempfile
1314import 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
Original file line number Diff line number Diff 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 ():
You can’t perform that action at this time.
0 commit comments