Skip to content

Commit

Permalink
Merge pull request #71 from ronen-y/master
Browse files Browse the repository at this point in the history
Skipped tests are not being ran anymore.
  • Loading branch information
osherdp committed Jun 29, 2018
2 parents 75ac8dd + 0307bf3 commit e1be290
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/rotest/core/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ def _share_outputs(self):
outputs_dict = {}
for output_name in self.get_outputs():
if output_name not in self.__dict__:
raise RuntimeError("Block %r didn't create output %r" %
(self.data.name, output_name))
self.logger.warn("Block %r didn't create output %r",
self.data.name, output_name)

outputs_dict[output_name] = getattr(self, output_name)

Expand Down
4 changes: 2 additions & 2 deletions tests/core/test_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ def test_optional_inputs_static_check(self):

self.validate_blocks(test_flow, failures=1)

def test_outputs_check(self):
def test_inputs_check(self):
"""Test runtime validation of inputs of blocks.
Run a flow with a block that pretends to share data and a block that
Expand All @@ -380,7 +380,7 @@ class PretendToShareDataBlock(SuccessBlock):
self.assertFalse(self.result.wasSuccessful(),
'Flow succeeded when it should have failed')

self.validate_blocks(test_flow, errors=2)
self.validate_blocks(test_flow, successes=1, failures=1)

def test_inputs_static_check_with_pipe(self):
"""Test static check of inputs validation of blocks when using pipes.
Expand Down

0 comments on commit e1be290

Please sign in to comment.