Skip to content

Commit d23818d

Browse files
authored
Add files via upload
1 parent b5e1f85 commit d23818d

1 file changed

Lines changed: 78 additions & 0 deletions

File tree

  • files/04-Advanced_Object-Oriented_Design_and_Programming/Unit_10
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
**Secure E-Learning Platform README file**
2+
3+
4+
5+
This file is designed to deliver instructions about how to execute the files and tests.
6+
7+
8+
9+
10+
11+
**Requirements**
12+
13+
* Python 3.14 (you may need to setup your own python PATH in Windows)
14+
15+
16+
17+
Project Files
18+
19+
* **course\_management.py** (Core implementation)
20+
* **test\_course\_management.py** (Automated unit tests)
21+
* **course\_management\_with\_demo.py** (Demonstration and integration test version)
22+
23+
24+
25+
Note: This report contains the original PowerShell commands I used to run from my IDE (Visual Studio Code), during development and testing. The command above is a a simplified version intended for general instruction from a different systems.
26+
27+
28+
29+
**Running the Unit Tests**
30+
31+
* Open a terminal and navigate to the project directory and run:
32+
33+
34+
35+
36+
37+
Run the "**test\_course\_management.py**" file.
38+
39+
* \& "C:\\Users\\”Your User”\\AppData\\Local\\Programs\\Python\\Python314\\python.exe" -m unittest test\_course\_management.py -v
40+
41+
42+
43+
**Expected Results**
44+
45+
The test suite executes 15 unit tests covering:
46+
47+
* Course ID validation
48+
* Student ID validation
49+
* Capacity limits
50+
* Duplicate enrolment prevention
51+
* Course management operations
52+
* Case-insensitive instructor search
53+
54+
55+
56+
57+
58+
Running the Demonstration file "**course\_management\_with\_demo.py**"
59+
60+
Simply open python course\_management\_with\_demo.py in an IDE and run
61+
62+
63+
64+
65+
66+
**Expected Results**
67+
68+
All tests should pass successfully and display an **OK** status.
69+
70+
The demonstration the showcases:
71+
72+
* Course creation
73+
* Student enrolment
74+
* Duplicate enrolment prevention
75+
* Input validation
76+
* Capacity enforcement
77+
* Instructor search functionality
78+

0 commit comments

Comments
 (0)