new-features #5
1 changed files with 6 additions and 5 deletions
|
|
@ -162,15 +162,16 @@ class Runner:
|
||||||
pass # create empty file
|
pass # create empty file
|
||||||
|
|
||||||
def _dependencies_passed(self):
|
def _dependencies_passed(self):
|
||||||
"""returns true if the setup of each dependency has passed"""
|
"""returns true if all setups of each dependency have passed"""
|
||||||
|
|
||||||
# todo: check more than one setup
|
# todo: what about conditional setups?
|
||||||
|
|
||||||
passed_tests = [r.name for r in self.DIRS.RESULTS.glob("*") if "passed" in r.name]
|
passed_tests = [r.name for r in self.DIRS.RESULTS.glob("*") if "passed" in r.name]
|
||||||
results = []
|
results = []
|
||||||
for dependencie in self.dependencies:
|
for dependencie_runner in self.dependencies:
|
||||||
dependencie_identifier = self.combine_names(dependencie.name, dependencie.main_setup_name)
|
for setup_name in dependencie_runner.setups:
|
||||||
results.append(any(dependencie_identifier in f for f in passed_tests))
|
dependencie_identifier = self.combine_names(dependencie_runner.name, setup_name.test_file)
|
||||||
|
results.append(any(dependencie_identifier in f for f in passed_tests))
|
||||||
return all(results)
|
return all(results)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue