Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drafted the architecture,refracted the messy code with python standard,and write unit tests #147

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
# Starter Repo
This repo has everything you need to get started on the program, good luck!
firstly import all these libraries .@uditkirar

import unittest
from datetime
import
datetime
<div>
from engine.model.calliope
import Calliope
from engine.model.glissade
import Glissade
from engine.model.palindrome
import Palindrome
from engine.model.rorschach
import Rorschach
from engine.model.thovex
import Thovex
</div>
Empty file added __init__.py
Empty file.
Empty file added assets
Empty file.
Empty file added battery
Empty file.
1 change: 1 addition & 0 deletions batterymodified
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

10 changes: 0 additions & 10 deletions car.py
Original file line number Diff line number Diff line change
@@ -1,10 +0,0 @@
from abc import ABC, abstractmethod


class Car(ABC):
def __init__(self, last_service_date):
self.last_service_date = last_service_date

@abstractmethod
def needs_service(self):
pass
Empty file added car_factory.py
Empty file.
Empty file added carrigan_tires.py
Empty file.
Empty file added octoprime_tires.py
Empty file.
Empty file added serviceable.py
Empty file.
Empty file added spindler_battery.py
Empty file.
Empty file added test/test_batteries.py
Empty file.
Empty file added test/test_engines.py
Empty file.
Empty file added test/test_tires.py
Empty file.
Empty file added test_battery
Empty file.
Empty file added test_engine
Empty file.
1 change: 1 addition & 0 deletions tests
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
written from scratch
Empty file added tires.py
Empty file.
Empty file added utils.py
Empty file.