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 e36b41a7 authored by johjo_ytreza.org's avatar johjo_ytreza.org
Browse files

"Source commit"

parent fb627f67
No related branches found
No related tags found
No related merge requests found
File added
import subprocess
class Tcr:
def __init__(self, outside):
self.outside = outside
......@@ -9,3 +11,26 @@ class Tcr:
else:
self.outside.revert_source()
class Outside:
def commit_test(self):
pass
subprocess.run(["git", "add", "./tests/"])
subprocess.run(["git", "commit", "-m", "\"Test commit\""])
def run_tests(self):
process = subprocess.run(["pytest", "-v"])
return process.returncode == 0
def revert_source(self):
raise NotImplementedError()
def commit_source(self):
subprocess.run(["git", "add", "./"])
subprocess.run(["git", "commit", "-m", "\"Source commit\""])
if __name__ == '__main__':
tcr = Tcr(Outside())
tcr.run()
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