sydtest-mongo 0.0.0.0 → 0.1.0.0
raw patch · 6 files changed
+23/−10 lines, 6 filesdep ~sydtestbinary-addedPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: sydtest
API changes (from Hackage documentation)
- Test.Syd.MongoDB: mongoServerSpec :: TestDefM (MongoServerHandle : outers) inner result -> TestDefM outers inner result
+ Test.Syd.MongoDB: mongoServerSpec :: TestDefM (MongoServerHandle ': outers) inner result -> TestDefM outers inner result
- Test.Syd.MongoDB: mongoSpec :: TestDefM (MongoServerHandle : outers) Pipe result -> TestDefM outers inner result
+ Test.Syd.MongoDB: mongoSpec :: TestDefM (MongoServerHandle ': outers) Pipe result -> TestDefM outers inner result
Files
- CHANGELOG.md +7/−0
- src/Test/Syd/MongoDB.hs +4/−3
- sydtest-mongo.cabal +10/−4
- test/Test/Syd/MongoDBSpec.hs +2/−3
- test_resources/example.bson binary
- test_resources/pure-example.bson binary
+ CHANGELOG.md view
@@ -0,0 +1,7 @@+# Changelog++## [0.1.0.0] - 2024-08-04++### Changed++* Compatibility with `sydtest >=0.17`
src/Test/Syd/MongoDB.hs view
@@ -59,9 +59,10 @@ ensureDir (parent ap) SB.writeFile (fromAbsFile ap) $ LB.toStrict $ runPut $ putDocument d, goldenTestCompare = \actual expected ->- if actual == expected- then Nothing- else Just (Context (stringsNotEqualButShouldHaveBeenEqual (ppShow actual) (ppShow expected)) (goldenContext fp))+ pure $+ if actual == expected+ then Nothing+ else Just (Context (stringsNotEqualButShouldHaveBeenEqual (ppShow actual) (ppShow expected)) (goldenContext fp)) } -- | Test that the given 'Bson.Document' is the same as what we find in the given golden file.
sydtest-mongo.cabal view
@@ -1,11 +1,11 @@ cabal-version: 1.12 --- This file has been generated from package.yaml by hpack version 0.34.4.+-- This file has been generated from package.yaml by hpack version 0.36.0. -- -- see: https://github.com/sol/hpack name: sydtest-mongo-version: 0.0.0.0+version: 0.1.0.0 synopsis: An mongoDB companion library for sydtest category: Testing homepage: https://github.com/NorfairKing/sydtest#readme@@ -16,6 +16,11 @@ license: OtherLicense license-file: LICENSE.md build-type: Simple+extra-source-files:+ LICENSE.md+ CHANGELOG.md+ test_resources/example.bson+ test_resources/pure-example.bson source-repository head type: git@@ -44,7 +49,7 @@ , path-io , port-utils , process- , sydtest+ , sydtest >=0.17 , sydtest-process , text , yaml@@ -67,8 +72,9 @@ , sydtest , sydtest-mongo , text+ buildable: False+ default-language: Haskell2010 if flag(sydtest_integration_tests) buildable: True else buildable: False- default-language: Haskell2010
test/Test/Syd/MongoDBSpec.hs view
@@ -48,9 +48,8 @@ ] describe "goldenBSONDocumentFile" $ it "outputs this example the same as before" $- goldenBSONDocumentFile- "test_resources/example.bson"- $ pure+ goldenBSONDocumentFile "test_resources/example.bson" $+ pure [ "hello" =: ("world" :: Text), "baz" =: 'a', "quux" =: (0.0 :: Double)
+ test_resources/example.bson view
binary file changed (absent → 47 bytes)
+ test_resources/pure-example.bson view
binary file changed (absent → 44 bytes)