Skip to content

Commit

Permalink
add info to test for grading import
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlxs committed Nov 22, 2024
1 parent f680c08 commit 917de4f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ public class ImportGradingsForAssignmentTest {
@Transactional
@Commit
void testImportGradingsForAssignment(final GraphQlTester tester) {
// tests for a sheet and grading made on local TMS setup

// create sheetNo 1 in MEITREX

UUID exerciseId1 = UUID.randomUUID();
Expand Down Expand Up @@ -193,6 +195,9 @@ void testImportGradingsForAssignment(final GraphQlTester tester) {
receivedGrading.setDate(receivedGrading.getDate().truncatedTo(ChronoUnit.MILLIS).withOffsetSameInstant(ZoneOffset.UTC));

assertThat(assignmentMapper.gradingEntityToDto(expectedGradingEntity), is(receivedGrading));

// fails for two reasons: - date is not correct (as is expected from code)
// - achievedExerciseCredits are 0 from TMS (makes more sense to fix in TMS than to work around in MEITREX)
}

}

0 comments on commit 917de4f

Please sign in to comment.