chore: make tests compile again
This commit is contained in:
parent
ce0f48b82a
commit
30fb1462ab
@ -134,7 +134,7 @@ postEAutoOccurrenceR tid ssh csh examn = do
|
|||||||
runFormPost $ examAutoOccurrenceNudgeForm occId (formResult' . asum $ calculateRes : nudgeRes ^.. ifolded . ifiltered (\occId' _ -> occId' /= occId) . _1 . _1 ++ ignoreRes ^.. folded . _1 . _1)
|
runFormPost $ examAutoOccurrenceNudgeForm occId (formResult' . asum $ calculateRes : nudgeRes ^.. ifolded . ifiltered (\occId' _ -> occId' /= occId) . _1 . _1 ++ ignoreRes ^.. folded . _1 . _1)
|
||||||
ignoreRes <- sequence . flip Map.fromSet (setOf (folded . _entityKey) occurrences) $ \occId ->
|
ignoreRes <- sequence . flip Map.fromSet (setOf (folded . _entityKey) occurrences) $ \occId ->
|
||||||
runFormPost $ examAutoOccurrenceIgnoreRoomsForm occId (formResult' . asum $ calculateRes : nudgeRes ^.. folded . _1 . _1 ++ ignoreRes ^.. ifolded . ifiltered (\occId' _ -> occId' /= occId) . _1 . _1)
|
runFormPost $ examAutoOccurrenceIgnoreRoomsForm occId (formResult' . asum $ calculateRes : nudgeRes ^.. folded . _1 . _1 ++ ignoreRes ^.. ifolded . ifiltered (\occId' _ -> occId' /= occId) . _1 . _1)
|
||||||
return $ (nudgeRes, ignoreRes)
|
return (nudgeRes, ignoreRes)
|
||||||
|
|
||||||
|
|
||||||
let calculateRes' = asum $ calculateRes : nudgeRes ^.. folded . _1 . _1 ++ ignoreRes ^.. folded . _1 . _1
|
let calculateRes' = asum $ calculateRes : nudgeRes ^.. folded . _1 . _1 ++ ignoreRes ^.. folded . _1 . _1
|
||||||
|
|||||||
@ -122,7 +122,7 @@ spec = do
|
|||||||
let userProperties :: Map UserId (UserProperties, Maybe ExamOccurrenceId)
|
let userProperties :: Map UserId (UserProperties, Maybe ExamOccurrenceId)
|
||||||
userProperties = Map.map (first UserProperties) users
|
userProperties = Map.map (first UserProperties) users
|
||||||
case autoOccurrenceResult of
|
case autoOccurrenceResult of
|
||||||
(Right (occurrenceMapping, userMap)) -> do
|
(Right (occurrenceMapping, userMap, _ignoredRooms)) -> do
|
||||||
-- user count stays constant
|
-- user count stays constant
|
||||||
myAnnotate "number of users changed" $ shouldBe (length userMap) (length users)
|
myAnnotate "number of users changed" $ shouldBe (length userMap) (length users)
|
||||||
-- no room is overfull
|
-- no room is overfull
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user