Add Assignment 6 Python application and Jenkins pipeline
myfileagent-python-ci/pipeline/head This commit looks good
myfileagent-python-ci/pipeline/head This commit looks good
This commit is contained in:
parent
4a67a09780
commit
041adfcda4
@@ -0,0 +1,11 @@
|
||||
import unittest
|
||||
from pricing import total_price
|
||||
|
||||
|
||||
class PricingTests(unittest.TestCase):
|
||||
def test_total(self):
|
||||
self.assertEqual(total_price(10, 3), 30)
|
||||
|
||||
def test_invalid_quantity(self):
|
||||
with self.assertRaises(ValueError):
|
||||
total_price(10, 0)
|
||||
Reference in New Issue
Block a user