From 31544aae2d36f84e3f968678792c00d3fe2c8109 Mon Sep 17 00:00:00 2001 From: Raphael Discky Date: Sun, 2 Jun 2024 22:19:08 +0700 Subject: [PATCH] fix: test --- src/example/{main.py => parking_system.py} | 1 - tests/test_example.py | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) rename src/example/{main.py => parking_system.py} (99%) diff --git a/src/example/main.py b/src/example/parking_system.py similarity index 99% rename from src/example/main.py rename to src/example/parking_system.py index 6c75758..423c6a8 100644 --- a/src/example/main.py +++ b/src/example/parking_system.py @@ -12,4 +12,3 @@ def addCar(self, carType: int) -> bool: - diff --git a/tests/test_example.py b/tests/test_example.py index 6d2c744..085fabf 100644 --- a/tests/test_example.py +++ b/tests/test_example.py @@ -1,4 +1,4 @@ -from src.example.main import ParkingSystem +from src.example.parking_system import ParkingSystem import unittest # test using unittest @@ -17,7 +17,6 @@ def test_addCar(self): self.assertEqual(ps.addCar(1), False) - # test using pytest def test_addCar(): ps = ParkingSystem(1, 1, 0)