Revert "bad(idea): deactivate failig tests to release - revert me please"
This reverts commit 5b8f77ac97.
This commit is contained in:
parent
10e823b0c5
commit
9f3cb4ffe4
@ -1,16 +1,11 @@
|
|||||||
{-# LANGUAGE NoImplicitPrelude #-}
|
{-# LANGUAGE NoImplicitPrelude #-}
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
{-# LANGUAGE OverloadedStrings #-}
|
||||||
{-# OPTIONS -Wno-unused-top-binds #-}
|
|
||||||
module Handler.HomeSpec (spec) where
|
module Handler.HomeSpec (spec) where
|
||||||
|
|
||||||
import TestImport
|
import TestImport
|
||||||
|
|
||||||
spec :: Spec
|
spec :: Spec
|
||||||
-- spec = test_spec
|
spec = withApp $ do
|
||||||
spec = return () -- TODO: tests deactivated -- build/release problem
|
|
||||||
|
|
||||||
test_spec :: Spec
|
|
||||||
test_spec = withApp $ do
|
|
||||||
describe "Homepage" $ do
|
describe "Homepage" $ do
|
||||||
it "loads the index and checks it looks right" $ do
|
it "loads the index and checks it looks right" $ do
|
||||||
request $ do
|
request $ do
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
{-# LANGUAGE NoImplicitPrelude #-}
|
{-# LANGUAGE NoImplicitPrelude #-}
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
{-# LANGUAGE OverloadedStrings #-}
|
||||||
{-# OPTIONS -Wno-unused-top-binds #-}
|
|
||||||
module Handler.ProfileSpec (spec) where
|
module Handler.ProfileSpec (spec) where
|
||||||
|
|
||||||
import TestImport
|
import TestImport
|
||||||
@ -10,11 +9,7 @@ import qualified Data.CaseInsensitive as CI
|
|||||||
import Yesod.Core.Handler (toTextUrl)
|
import Yesod.Core.Handler (toTextUrl)
|
||||||
|
|
||||||
spec :: Spec
|
spec :: Spec
|
||||||
-- spec = test_spec
|
spec = withApp $ do
|
||||||
spec = return () -- TODO: tests deactivated -- build/release problem
|
|
||||||
|
|
||||||
test_spec :: Spec
|
|
||||||
test_spec = withApp $ do
|
|
||||||
describe "Profile page" $ do
|
describe "Profile page" $ do
|
||||||
it "asserts no access to my-account for anonymous users" $ do
|
it "asserts no access to my-account for anonymous users" $ do
|
||||||
get ProfileR
|
get ProfileR
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
{-# OPTIONS_GHC -fno-warn-incomplete-uni-patterns #-}
|
{-# OPTIONS_GHC -fno-warn-incomplete-uni-patterns #-}
|
||||||
{-# OPTIONS -Wno-unused-top-binds #-}
|
|
||||||
|
|
||||||
module Handler.Utils.SubmissionSpec where
|
module Handler.Utils.SubmissionSpec where
|
||||||
|
|
||||||
@ -35,9 +34,6 @@ import Control.Lens.Extras (is)
|
|||||||
|
|
||||||
import Data.Maybe (fromJust)
|
import Data.Maybe (fromJust)
|
||||||
|
|
||||||
spec :: Spec
|
|
||||||
-- spec = test_spec
|
|
||||||
spec = return () -- TODO: tests deactivated since submissions are currently not used -- build/release problem
|
|
||||||
|
|
||||||
userNumber :: TVar Natural
|
userNumber :: TVar Natural
|
||||||
userNumber = unsafePerformIO $ newTVarIO 1
|
userNumber = unsafePerformIO $ newTVarIO 1
|
||||||
@ -125,8 +121,8 @@ distributionExample mkParameters setupHook cont = do
|
|||||||
return (entityVal <$> key, Set.singleton (subId, sheet))
|
return (entityVal <$> key, Set.singleton (subId, sheet))
|
||||||
|
|
||||||
|
|
||||||
test_spec :: Spec
|
spec :: Spec
|
||||||
test_spec = withApp . describe "Submission distribution" $ do
|
spec = withApp . describe "Submission distribution" $ do
|
||||||
it "is fair" $
|
it "is fair" $
|
||||||
distributionExample
|
distributionExample
|
||||||
(return [(500, replicate 10 (Just $ Load Nothing 1 1))])
|
(return [(500, replicate 10 (Just $ Load Nothing 1 1))])
|
||||||
|
|||||||
Reference in New Issue
Block a user