Skip to content

Commit a09696c

Browse files
author
Oyvind Timian Dokk Husveg
committed
Adjusted tests
1 parent 7d197f6 commit a09696c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

exercise.tests/IntegrationTests/BaseIntegrationTest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ FROM users u
6262
protected const int TeacherId = 47;
6363
protected const int TeacherPostID = 34;
6464
protected const int TeacherCommentID = 37;
65+
protected const int TeacherCohort = 37;
6566

6667
protected const string StudentEmail1 = "james.olsen7@example.com";
6768
protected const string StudentPassword1 = "Timianerkul1!";

exercise.tests/IntegrationTests/CohortTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,9 +392,9 @@ public async Task AddUserToCohortAndDeleteUser(
392392

393393
[TestCase(TeacherEmail, TeacherPassword, 350, 1, 1, "User with Id 350 not found.", HttpStatusCode.BadRequest)]
394394
[TestCase(TeacherEmail, TeacherPassword, 1, 20, 1, "Cohort with Id 20 not found.", HttpStatusCode.BadRequest)]
395-
[TestCase(TeacherEmail, TeacherPassword, 11, 1, 10, "The specified course is not part of this cohort.", HttpStatusCode.BadRequest)]
395+
[TestCase(TeacherEmail, TeacherPassword, 11, 3, 10, "The specified course is not part of this cohort.", HttpStatusCode.BadRequest)]
396396
[TestCase(TeacherEmail, TeacherPassword, 1, 1, 1, "The specified user is not part of this cohort.", HttpStatusCode.BadRequest)]
397-
[TestCase(TeacherEmail, TeacherPassword, 11, 1, 2, "User is in cohort, but is not taking the specified course.", HttpStatusCode.BadRequest)]
397+
[TestCase(TeacherEmail, TeacherPassword, 11, 3, 2, "User is in cohort, but is not taking the specified course.", HttpStatusCode.BadRequest)]
398398
[TestCase(StudentEmail1, StudentPassword1, 1, 1, 1, "You are not authorized to delete a user from a cohort.", HttpStatusCode.Forbidden)]
399399
public async Task InvalidDeletes(
400400
string email,

0 commit comments

Comments
 (0)