Add Assignment 6 Python application and Jenkins pipeline
myfileagent-python-ci/pipeline/head This commit looks good

This commit is contained in:
Codex (authorized Assignment 5 implementation)
2026-10-09 18:33:17 +00:00
parent 4a67a09780
commit 041adfcda4
6 changed files with 91 additions and 0 deletions
+11
View File
@@ -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)