Add pricing module, tests and Jenkinsfile for CI (#11)
Scrap-Web/pipeline/pr-main This commit looks good

This commit is contained in:
2026-10-18 15:03:41 -04:00
parent 7ffe1f0b34
commit b899233138
4 changed files with 65 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
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)
if __name__ == "__main__":
unittest.main()