]> gitweb.michael.orlitzky.com - dead/htsn-import.git/commitdiff
Add sample of Odds_XML with an empty casino.
authorMichael Orlitzky <michael@orlitzky.com>
Fri, 17 Oct 2014 15:37:04 +0000 (11:37 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Fri, 17 Oct 2014 15:37:04 +0000 (11:37 -0400)
test/shell/import-duplicates.test
test/xml/Odds_XML-empty-casino.xml [new file with mode: 0644]

index 1eb256dd64321d64d8fa4769df44c31fc97cf339..656bd8ad15ba7e75078c8a6b49b6c4c5a55df436 100644 (file)
@@ -16,7 +16,7 @@ rm -f shelltest.sqlite3
 # and a newsxml that aren't really supposed to import.
 find ./test/xml -maxdepth 1 -name '*.xml' | wc -l
 >>>
-35
+36
 >>>= 0
 
 # Run the imports again; we should get complaints about the duplicate
@@ -24,7 +24,7 @@ find ./test/xml -maxdepth 1 -name '*.xml' | wc -l
 # occurrences of the string 'ERROR'.
 ./dist/build/htsn-import/htsn-import -c 'shelltest.sqlite3' test/xml/*.xml 2>&1 | grep ERROR | wc -l
 >>>
-62
+64
 >>>= 0
 
 # Finally, clean up after ourselves.
diff --git a/test/xml/Odds_XML-empty-casino.xml b/test/xml/Odds_XML-empty-casino.xml
new file mode 100644 (file)
index 0000000..55276ac
--- /dev/null
@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no" ?>\r<!DOCTYPE message PUBLIC "-//TSN//DTD Statistics 1.0/EN" "Odds_XML.dtd">\r<message>\r<XML_File_ID>21985005</XML_File_ID>\r<heading>ADO;NHL-ODDS</heading>\r<category>Odds</category>\r<sport>NHL</sport>\r<Title>Las Vegas National Hockey League Line</Title>\r<Line_Time>Current Line as of 12:30 P.M. ET</Line_Time>\r<Game>\r<GameID>19287</GameID>\r<Game_Date>10/15/2014</Game_Date>\r<Game_Time>08:00 PM</Game_Time>\r<AwayTeam>\r<AwayTeamID>123</AwayTeamID>\r<AwayRotationNumber>051</AwayRotationNumber>\r<AwayAbbr>CAL</AwayAbbr>\r<AwayTeamName>Calgary</AwayTeamName>\r<Casino ClientID="116" Name="5Dimes">+225</Casino>\r<Casino ClientID="110" Name="Betus">+230</Casino>\r<Casino ClientID="104" Name="BOVADA">+240</Casino>\r<Casino ClientID="121" Name="Mirage">+220</Casino>\r<Casino ClientID="127" Name="DonBest Consensus">+225</Casino>\r<Casino ClientID="" Name=""></Casino>\r</AwayTeam>\r<HomeTeam>\r<HomeTeamID>124</HomeTeamID>\r<HomeRotationNumber>052</HomeRotationNumber>\r<HomeAbbr>CHI</HomeAbbr>\r<HomeTeamName>Chicago</HomeTeamName>\r<Casino ClientID="116" Name="5Dimes">-265</Casino>\r<Casino ClientID="110" Name="Betus">-270</Casino>\r<Casino ClientID="104" Name="BOVADA">-280</Casino>\r<Casino ClientID="121" Name="Mirage">-260</Casino>\r<Casino ClientID="127" Name="DonBest Consensus">-265</Casino>\r<Casino ClientID="" Name=""></Casino>\r</HomeTeam>\r<Over_Under>\r<Casino ClientID="116" Name="5Dimes">5.5p</Casino>\r<Casino ClientID="110" Name="Betus">5.5u</Casino>\r<Casino ClientID="104" Name="BOVADA">5.5p</Casino>\r<Casino ClientID="121" Name="Mirage">5.5p</Casino>\r<Casino ClientID="127" Name="DonBest Consensus">5.5p</Casino>\r<Casino ClientID="" Name=""></Casino>\r</Over_Under>\r</Game>\r<Game>\r<GameID>19285</GameID>\r<Game_Date>10/15/2014</Game_Date>\r<Game_Time>08:00 PM</Game_Time>\r<AwayTeam>\r<AwayTeamID>121</AwayTeamID>\r<AwayRotationNumber>053</AwayRotationNumber>\r<AwayAbbr>BOS</AwayAbbr>\r<AwayTeamName>Boston</AwayTeamName>\r<Casino ClientID="116" Name="5Dimes">-120</Casino>\r<Casino ClientID="110" Name="Betus">-120</Casino>\r<Casino ClientID="104" Name="BOVADA">-125</Casino>\r<Casino ClientID="121" Name="Mirage">-115</Casino>\r<Casino ClientID="127" Name="DonBest Consensus">-120</Casino>\r<Casino ClientID="" Name=""></Casino>\r</AwayTeam>\r<HomeTeam>\r<HomeTeamID>125</HomeTeamID>\r<HomeRotationNumber>054</HomeRotationNumber>\r<HomeAbbr>DET</HomeAbbr>\r<HomeTeamName>Detroit</HomeTeamName>\r<Casino ClientID="116" Name="5Dimes">even</Casino>\r<Casino ClientID="110" Name="Betus">even</Casino>\r<Casino ClientID="104" Name="BOVADA">+105</Casino>\r<Casino ClientID="121" Name="Mirage">-105</Casino>\r<Casino ClientID="127" Name="DonBest Consensus">even</Casino>\r<Casino ClientID="" Name=""></Casino>\r</HomeTeam>\r<Over_Under>\r<Casino ClientID="116" Name="5Dimes">5p</Casino>\r<Casino ClientID="110" Name="Betus">5u</Casino>\r<Casino ClientID="104" Name="BOVADA">5p</Casino>\r<Casino ClientID="121" Name="Mirage">5p</Casino>\r<Casino ClientID="127" Name="DonBest Consensus">5p</Casino>\r<Casino ClientID="" Name=""></Casino>\r</Over_Under>\r</Game>\r<Game>\r<GameID>19289</GameID>\r<Game_Date>10/15/2014</Game_Date>\r<Game_Time>10:30 PM</Game_Time>\r<AwayTeam>\r<AwayTeamID>126</AwayTeamID>\r<AwayRotationNumber>055</AwayRotationNumber>\r<AwayAbbr>EDM</AwayAbbr>\r<AwayTeamName>Edmonton</AwayTeamName>\r<Casino ClientID="116" Name="5Dimes">+160</Casino>\r<Casino ClientID="110" Name="Betus">+160</Casino>\r<Casino ClientID="104" Name="BOVADA">+165</Casino>\r<Casino ClientID="121" Name="Mirage">+165</Casino>\r<Casino ClientID="127" Name="DonBest Consensus">+165</Casino>\r<Casino ClientID="" Name=""></Casino>\r</AwayTeam>\r<HomeTeam>\r<HomeTeamID>141</HomeTeamID>\r<HomeRotationNumber>056</HomeRotationNumber>\r<HomeAbbr>ARI</HomeAbbr>\r<HomeTeamName>Arizona</HomeTeamName>\r<Casino ClientID="116" Name="5Dimes">-185</Casino>\r<Casino ClientID="110" Name="Betus">-190</Casino>\r<Casino ClientID="104" Name="BOVADA">-190</Casino>\r<Casino ClientID="121" Name="Mirage">-185</Casino>\r<Casino ClientID="127" Name="DonBest Consensus">-185</Casino>\r<Casino ClientID="" Name=""></Casino>\r</HomeTeam>\r<Over_Under>\r<Casino ClientID="116" Name="5Dimes">5.5u</Casino>\r<Casino ClientID="110" Name="Betus">5.5u</Casino>\r<Casino ClientID="104" Name="BOVADA">5.5u</Casino>\r<Casino ClientID="121" Name="Mirage">5.5u</Casino>\r<Casino ClientID="127" Name="DonBest Consensus">5.5u</Casino>\r<Casino ClientID="" Name=""></Casino>\r</Over_Under>\r</Game>\r<time_stamp> October 15, 2014, at 12:27 PM ET </time_stamp>\r</message>\r
\ No newline at end of file