@@ -10,7 +10,7 @@ import Control.Monad
1010import Data.List (sortOn )
1111import Data.Monoid (First )
1212import DeckGo.Handler
13- import DeckGo.Presenter
13+ -- import DeckGo.Presenter
1414import Network.HTTP.Client (newManager , defaultManagerSettings )
1515import Network.HTTP.Types as HTTP
1616import Servant.API
@@ -137,6 +137,8 @@ withPristineDB act = do
137137 void $ HS. run (HS. sql " DROP TABLE IF EXISTS account CASCADE" ) conn
138138 putStrLn " DROP TABLE IF EXISTS slide"
139139 void $ HS. run (HS. sql " DROP TABLE IF EXISTS slide" ) conn
140+ putStrLn " DROP TABLE IF EXISTS presentation"
141+ void $ HS. run (HS. sql " DROP TABLE IF EXISTS presentation" ) conn
140142 putStrLn " DROP TABLE IF EXISTS deck"
141143 void $ HS. run (HS. sql " DROP TABLE IF EXISTS deck" ) conn
142144 putStrLn " DROP TABLE IF EXISTS db_meta"
@@ -187,10 +189,10 @@ testPresDeploys = withQueueName $ withEnv $ \env -> withSQS env $ withS3 env $ d
187189 , deckAttributes = HMS. singleton " foo" " bar"
188190 }
189191
190- deployPresentation env (Username " josph" ) newDeck [someSlide]
192+ deployPresentation env (Username " josph" ) $ deckToPres newDeck [someSlide]
191193 -- XXX: tests the obj diffing by making sure we can upload a presentation
192194 -- twice without errors
193- deployPresentation env (Username " josph" ) newDeck [someSlide]
195+ deployPresentation env (Username " josph" ) $ deckToPres newDeck [someSlide]
194196 where
195197 testQueueName = " the-queue"
196198 withQueueName =
@@ -589,6 +591,8 @@ slidesGetSlideId' :: T.Text -> DeckId -> SlideId -> ClientM (Item SlideId Slide)
589591slidesPost' :: T. Text -> DeckId -> Slide -> ClientM (Item SlideId Slide )
590592slidesPut' :: T. Text -> DeckId -> SlideId -> Slide -> ClientM (Item SlideId Slide )
591593slidesDelete' :: T. Text -> DeckId -> SlideId -> ClientM ()
594+ _presentationsPost' :: T. Text -> PresentationInfo -> ClientM (Item PresentationId PresentationResult )
595+ _presentationsPut' :: T. Text -> PresentationId -> PresentationInfo -> ClientM (Item PresentationId PresentationResult )
592596((
593597 usersGet' :<|>
594598 _usersGetUserId' :<|>
@@ -609,6 +613,10 @@ slidesDelete' :: T.Text -> DeckId -> SlideId -> ClientM ()
609613 slidesPost' :<|>
610614 slidesPut' :<|>
611615 slidesDelete'
616+ ) :<|>
617+ (
618+ _presentationsPost' :<|>
619+ _presentationsPut'
612620 )
613621 ) = client api
614622
0 commit comments