From 347be92462a0c427cad4563e89cb973a6db0ab59 Mon Sep 17 00:00:00 2001 From: Torsten Ueberschar Date: Thu, 13 Oct 2022 12:19:03 +0200 Subject: [PATCH] hrrr --- README.md | 20 ++++++++++++++++++++ tests.py | 5 +++++ 2 files changed, 25 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..9e1a5f3 --- /dev/null +++ b/README.md @@ -0,0 +1,20 @@ +# Dependancy Injection + +## initialize + +```shell +pip install -r requirements.txt +``` + +## run + +```shell +python3 __main__.py +``` + + +## run tests + +```shell +python3 tests.py +``` \ No newline at end of file diff --git a/tests.py b/tests.py index 4fccb9d..bcfca10 100644 --- a/tests.py +++ b/tests.py @@ -1,3 +1,4 @@ +import unittest from unittest import mock import services @@ -27,3 +28,7 @@ def test_is_mail_send(): email_service.send.assert_called_once_with("test@receiver", "test invoice") invoice_service.create_invoice.assert_called() + + +if __name__ == '__main__': + unittest.main()