@@ -11,7 +11,6 @@ def setUp(self):
11
11
# Create a sample project record
12
12
self .project = Project .objects .create (
13
13
group = "CPP SEA" ,
14
- match_percentage = 85.5 ,
15
14
title = "Icebreak" ,
16
15
institution = "Cal Poly Pomona" ,
17
16
description = "We help connect organizations with their members." ,
@@ -23,7 +22,6 @@ def setUp(self):
23
22
# Rebecca's test project
24
23
self .project2 = Project .objects .create (
25
24
group = "Codebreaker's Club" ,
26
- match_percentage = 20 ,
27
25
title = "Enigma Machine Emulator" ,
28
26
institution = "University of California, Irvine" ,
29
27
description = "An Enigma machine emulator that replicates the encryption process of the Enigma M3 series used by the Germans." ,
@@ -35,7 +33,6 @@ def setUp(self):
35
33
# Luis' test project
36
34
self .project3 = Project .objects .create (
37
35
group = "CodeWarriors" ,
38
- match_percentage = 60 ,
39
36
title = "PersonalityPlaylist" ,
40
37
institution = "University of California, Riverside" ,
41
38
description = "An app to create custom Spotify playlists based on a personality profile." ,
@@ -47,7 +44,6 @@ def setUp(self):
47
44
#William's test project
48
45
self .project4 = Project .objects .create (
49
46
group = "Byte Me" ,
50
- match_percentage = 10 ,
51
47
title = "F1 Race Machine Learning Model" ,
52
48
institution = "University of California, Berkley" ,
53
49
description = "A machine learning model that takes data from F1 races and predicts winners based on previous results." ,
@@ -59,7 +55,6 @@ def setUp(self):
59
55
def test_project_creation_1 (self ):
60
56
# Check if the record populated correctly
61
57
self .assertEqual (self .project .group , "CPP SEA" )
62
- self .assertEqual (self .project .match_percentage , 85.5 )
63
58
self .assertEqual (self .project .title , "Icebreak" )
64
59
self .assertEqual (self .project .institution , "Cal Poly Pomona" )
65
60
self .assertEqual (self .project .description , "We help connect organizations with their members." )
@@ -71,7 +66,6 @@ def test_project_creation_1(self):
71
66
# Rebecca's test project
72
67
def test_project_creation_2 (self ):
73
68
self .assertEqual (self .project2 .group , "Codebreaker's Club" )
74
- self .assertEqual (self .project2 .match_percentage , 20 )
75
69
self .assertEqual (self .project2 .title , "Enigma Machine Emulator" )
76
70
self .assertEqual (self .project2 .institution , "University of California, Irvine" )
77
71
self .assertEqual (self .project2 .description , "An Enigma machine emulator that replicates the encryption process of the Enigma M3 series used by the Germans." )
@@ -84,7 +78,6 @@ def test_project_creation_2(self):
84
78
def test_project_creation_3 (self ):
85
79
# Check if the record populated correctly
86
80
self .assertEqual (self .project3 .group , "CodeWarriors" )
87
- self .assertEqual (self .project3 .match_percentage , 60 )
88
81
self .assertEqual (self .project3 .title , "PersonalityPlaylist" )
89
82
self .assertEqual (self .project3 .institution , "University of California, Riverside" )
90
83
self .assertEqual (self .project3 .description , "An app to create custom Spotify playlists based on a personality profile." )
@@ -97,7 +90,6 @@ def test_project_creation_3(self):
97
90
def test_project_creation_4 (self ):
98
91
# Check if the record populated correctly
99
92
self .assertEqual (self .project4 .group , "Byte Me" )
100
- self .assertEqual (self .project4 .match_percentage , 10 )
101
93
self .assertEqual (self .project4 .title , "F1 Race Machine Learning Model" )
102
94
self .assertEqual (self .project4 .institution , "University of California, Berkley" )
103
95
self .assertEqual (self .project4 .description , "A machine learning model that takes data from F1 races and predicts winners based on previous results." )
@@ -110,10 +102,10 @@ class GetProjectsAPITest(APITestCase):
110
102
def setUp (self ):
111
103
# Add mock project data
112
104
self .project1 = Project .objects .create (
113
- title = "AI for Healthcare" , institution = "MIT" , match_percentage = 85.5
105
+ title = "AI for Healthcare" , institution = "MIT"
114
106
)
115
107
self .project2 = Project .objects .create (
116
- title = "Web Dev" , institution = "Stanford" , match_percentage = 70.0
108
+ title = "Web Dev" , institution = "Stanford"
117
109
)
118
110
self .url = reverse ("get_projects" )
119
111
0 commit comments