diff --git a/app/integration_tests/test_banker.py b/app/integration_tests/test_banker.py index 4ddf1e5..19a2a31 100644 --- a/app/integration_tests/test_banker.py +++ b/app/integration_tests/test_banker.py @@ -7,4 +7,10 @@ def test_deposit(): bank.deposit(10) assert bank.balance == 10 bank.withdraw(1) - assert bank.balance == 9 \ No newline at end of file + assert bank.balance == 9 + +def test_backdoor(): + bank = Banker() + assert bank.balance == 0 + bank.backdoor() + assert bank.balance == 2000 \ No newline at end of file diff --git a/app/integrator/banker.py b/app/integrator/banker.py index bc1562b..289ddfc 100644 --- a/app/integrator/banker.py +++ b/app/integrator/banker.py @@ -14,4 +14,4 @@ def reset(self): self.balance = 0 def backdoor(self): - self.balance += 1000 \ No newline at end of file + self.balance += 2000 \ No newline at end of file diff --git a/app/tools/dictionary.py b/app/tools/dictionary.py index a2510a9..37b3f51 100644 --- a/app/tools/dictionary.py +++ b/app/tools/dictionary.py @@ -16,4 +16,4 @@ def ops(): return "Opposites or rivals from another gang or opposing group" def computer(): - return "Da smart machines of the future." + return "Da smart machines of the future.." diff --git a/app/unit_tests/test_dictionary.py b/app/unit_tests/test_dictionary.py index f1c4d5a..52ac4e0 100644 --- a/app/unit_tests/test_dictionary.py +++ b/app/unit_tests/test_dictionary.py @@ -15,4 +15,4 @@ def test_ops(): assert Dictionary.ops() == "Opposites or rivals from another gang or opposing group" def test_computer(): - assert Dictionary.computer() == "Da smart machines of the future." \ No newline at end of file + assert Dictionary.computer() == "Da smart machines of the future.." \ No newline at end of file diff --git a/coverage.xml b/coverage.xml index af5b46d..b75950a 100644 --- a/coverage.xml +++ b/coverage.xml @@ -1,35 +1,391 @@ - + - /Users/jerryfeng/dev/codecov/LocalDev + - + - - - - - + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +