X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2FTSN%2FXML%2FGameInfo.hs;h=2b5e1adb9ed3b45ad803a26479811088ab5099e6;hb=4ce681700509beedf38026568ea20102801e6516;hp=bc68f42a490aca44dec9154af21c7488f5e80aa7;hpb=2bf6ea31afc5d87e2c953d44ff89ff7e4ec73c32;p=dead%2Fhtsn-import.git diff --git a/src/TSN/XML/GameInfo.hs b/src/TSN/XML/GameInfo.hs index bc68f42..2b5e1ad 100644 --- a/src/TSN/XML/GameInfo.hs +++ b/src/TSN/XML/GameInfo.hs @@ -123,6 +123,7 @@ instance DbImport GameInfo where -- mkPersist defaultCodegenConfig [groundhog| - entity: GameInfo + dbName: game_info constructors: - name: GameInfo uniques: @@ -161,7 +162,7 @@ test_accessors = testCase "we can access a parsed game_info" $ do let a2 = xml_file_id t let ex2 = 21201550 let a3 = show $ time_stamp t - let ex3 = "2014-05-31 20:13:00 UTC" + let ex3 = "2014-05-31 15:13:00 UTC" let a4 = take 9 (xml t) let ex4 = "" let actual = (a1,a2,a3,a4) @@ -204,7 +205,7 @@ test_dbimport_succeeds = testCase "dbimport succeeds" $ do xmltrees <- mapM unsafe_read_document game_info_test_files let msgs = rights $ map (parse_xml "dummy") xmltrees actual <- withSqliteConn ":memory:" $ runDbConn $ do - runMigration silentMigrationLogger $ do + runMigration silentMigrationLogger $ migrate (undefined :: GameInfo) mapM_ dbimport msgs countAll (undefined :: GameInfo)