Update integration tests for multiple file support
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
10b3188214
commit
c0c9a7c1e4
4 changed files with 16 additions and 9 deletions
|
|
@ -9,7 +9,7 @@ import shutil
|
|||
import tempfile
|
||||
|
||||
from .testcases import DockerClientTestCase
|
||||
from compose import config
|
||||
from compose.config import config
|
||||
from compose.const import LABEL_CONFIG_HASH
|
||||
from compose.project import Project
|
||||
from compose.service import ConvergenceStrategy
|
||||
|
|
@ -24,11 +24,13 @@ class ProjectTestCase(DockerClientTestCase):
|
|||
return set(project.containers(stopped=True))
|
||||
|
||||
def make_project(self, cfg):
|
||||
details = config.ConfigDetails(
|
||||
'working_dir',
|
||||
[config.ConfigFile(None, cfg)])
|
||||
return Project.from_dicts(
|
||||
name='composetest',
|
||||
client=self.client,
|
||||
service_dicts=config.load(config.ConfigDetails(cfg, 'working_dir', None))
|
||||
)
|
||||
service_dicts=config.load(details))
|
||||
|
||||
|
||||
class BasicProjectTest(ProjectTestCase):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue