Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit b1d67e00 authored by johjo_ytreza.org's avatar johjo_ytreza.org
Browse files

refactoring : remove unused code

parent 27a7ada7
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@ class Tcr:
def __init__(self, outside):
self.outside = outside
def run(self, test_will_fail=False):
def run(self):
self.outside.commit_test()
if self.outside.run_tests():
self.outside.commit_source()
......
......@@ -45,7 +45,7 @@ def test_should_commit_source_when_test_pass(outside, tcr):
def test_should_not_commit_when_test_fail(outside, tcr):
outside.test_will_fail = True
tcr.run(True)
tcr.run()
assert not outside.source_commit_done, "Source should not be commited"
......@@ -53,7 +53,7 @@ def test_should_not_commit_when_test_fail(outside, tcr):
def test_should_revert_when_test_fail(outside, tcr):
outside.test_will_fail = True
tcr.run(True)
tcr.run()
assert outside.source_revert_done, "Source should be reverted"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment