diff --git a/app/calculator.py b/app/calculator.py index 8526582..9786b25 100644 --- a/app/calculator.py +++ b/app/calculator.py @@ -20,4 +20,7 @@ def modulo(x, y): def trippy(x, y): x += 1 y -= 1 - return x * y \ No newline at end of file + return x * y + + def minus_one(x): + return x-1 \ No newline at end of file diff --git a/app/dictionary.py b/app/dictionary.py index c40b623..f8dd5cb 100644 --- a/app/dictionary.py +++ b/app/dictionary.py @@ -10,4 +10,7 @@ def food(): return "Eat this" def joint(): - return "Yeh" \ No newline at end of file + return "Yeh" + + def ops(): + return "Opposites or rivals from another gang or opposing group" \ No newline at end of file diff --git a/app/test_calculator.py b/app/test_calculator.py index 657609e..8bc1ded 100644 --- a/app/test_calculator.py +++ b/app/test_calculator.py @@ -32,4 +32,7 @@ def test_divide(): def test_modulo(): assert Calculator.modulo(5, 2) == 1 - assert Calculator.modulo(6, 2) == 0 \ No newline at end of file + assert Calculator.modulo(6, 2) == 0 + +def test_minus_one(): + assert Calculator.minus_one(5) == 4 \ No newline at end of file diff --git a/app/test_dictionary.py b/app/test_dictionary.py index cd155b9..5db4b5d 100644 --- a/app/test_dictionary.py +++ b/app/test_dictionary.py @@ -9,4 +9,7 @@ def test_car(): assert Dictionary.car() == "Something that you drive" def test_food(): - assert Dictionary.food() == "Eat this" \ No newline at end of file + assert Dictionary.food() == "Eat this" + +def test_ops(): + assert Dictionary.ops() == "Opposites or rivals from another gang or opposing group" \ No newline at end of file diff --git a/codecov.yml b/codecov.yml index 8c72c2c..b233437 100644 --- a/codecov.yml +++ b/codecov.yml @@ -13,4 +13,22 @@ flag_management: target: auto threshold: 1% - type: patch - target: 1% \ No newline at end of file + target: 1% + +component_management: + default_rules: + statuses: + - type: project + target: auto + threshold: 1% + - type: patch + target: 1% + individual_components: + - component_id: dictionary + name: DictionaryApp + paths: + - "**/dictionary.py" + - component_id: calculator + name: CalculatorApp + paths: + - "**/calculator.py" \ No newline at end of file diff --git a/coverage.xml b/coverage.xml index bae5acb..2083d65 100644 --- a/coverage.xml +++ b/coverage.xml @@ -1,5 +1,5 @@ - + @@ -219,7 +219,7 @@ - + @@ -247,7 +247,7 @@ - + @@ -257,6 +257,8 @@ + +