From 0dbb78e69d8027da017be8a270b002b0f9d19d81 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Mon, 18 Jul 2022 18:27:53 +0200 Subject: [PATCH] Tests: Also use `datetime` column within `locations` test fixtures It is filled with the same value as in the corresponding `date` column. --- src/crate/client/doctests/client.txt | 2 +- src/crate/testing/testdata/data/test_a.json | 26 ++++++++++----------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/crate/client/doctests/client.txt b/src/crate/client/doctests/client.txt index 9761642d..64bca0d6 100644 --- a/src/crate/client/doctests/client.txt +++ b/src/crate/client/doctests/client.txt @@ -213,7 +213,7 @@ supported, all other fields are 'None':: >>> pprint(result) ['Aldebaran', 1373932800000, - None, + 1373932800000, None, None, 'Star System', diff --git a/src/crate/testing/testdata/data/test_a.json b/src/crate/testing/testdata/data/test_a.json index d924ec3b..6913483c 100644 --- a/src/crate/testing/testdata/data/test_a.json +++ b/src/crate/testing/testdata/data/test_a.json @@ -1,13 +1,13 @@ -{ "name": "North West Ripple", "date":308534400000, "kind": "Galaxy", "position": 1, "description": "Relative to life on NowWhat, living on an affluent world in the North West ripple of the Galaxy is said to be easier by a factor of about seventeen million."} -{ "name": "Outer Eastern Rim", "date":308534400000, "kind": "Galaxy", "position": 2, "description": "The Outer Eastern Rim of the Galaxy where the Guide has supplanted the Encyclopedia Galactica among its more relaxed civilisations."} -{ "name": "Galactic Sector QQ7 Active J Gamma", "date":1367366400000, "kind": "Galaxy", "position": 4, "description": "Galactic Sector QQ7 Active J Gamma contains the Sun Zarss, the planet Preliumtarn of the famed Sevorbeupstry and Quentulus Quazgar Mountains."} -{ "name": "Aldebaran", "date":1373932800000, "kind": "Star System", "position": 1, "description": "Max Quordlepleen claims that the only thing left after the end of the Universe will be the sweets trolley and a fine selection of Aldebaran liqueurs."} -{ "name": "Algol", "date":1373932800000, "kind": "Star System", "position": 2, "description": "Algol is the home of the Algolian Suntiger, the tooth of which is one of the ingredients of the Pan Galactic Gargle Blaster."} -{ "name": "Alpha Centauri", "date":308534400000, "kind": "Star System", "position": 3, "description": "4.1 light-years northwest of earth"} -{ "name": "Altair", "date":1373932800000, "kind": "Star System", "position": 4, "description": "The Altairian dollar is one of three freely convertible currencies in the galaxy, though by the time of the novels it had apparently recently collapsed."} -{ "name": "Allosimanius Syneca", "date":1373932800000, "kind": "Planet", "position": 1, "description": "Allosimanius Syneca is a planet noted for ice, snow, mind-hurtling beauty and stunning cold."} -{ "name": "Argabuthon", "date":1373932800000, "kind": "Planet", "position": 2, "description": "It is also the home of Prak, a man placed into solitary confinement after an overdose of truth drug caused him to tell the Truth in its absolute and final form, causing anyone to hear it to go insane."} -{ "name": "Arkintoofle Minor", "date":308534400000, "kind": "Planet", "position": 3, "description": "Motivated by the fact that the only thing in the Universe that travels faster than light is bad news, the Hingefreel people native to Arkintoofle Minor constructed a starship driven by bad news."} -{ "name": "Bartledan", "date":1373932800000, "kind": "Planet", "position": 4, "description": "An Earthlike planet on which Arthur Dent lived for a short time, Bartledan is inhabited by Bartledanians, a race that appears human but only physically."} -{ "name": "Folfanga", "date":1373932800000, "kind": "Star System", "position": 5, "description": "Folfanga is a star system, the fourth planet of which is inhabited by a species of small slug, of the genus A-Rth-Urp-Hil-Ipdenu."} -{ "name": "Galaxy", "date":1373932800000, "kind": "Galaxy", "position": 6, "description": "The end of the Galaxy."} +{ "name": "North West Ripple", "date":308534400000, "datetime":308534400000, "kind": "Galaxy", "position": 1, "description": "Relative to life on NowWhat, living on an affluent world in the North West ripple of the Galaxy is said to be easier by a factor of about seventeen million."} +{ "name": "Outer Eastern Rim", "date":308534400000, "datetime":308534400000, "kind": "Galaxy", "position": 2, "description": "The Outer Eastern Rim of the Galaxy where the Guide has supplanted the Encyclopedia Galactica among its more relaxed civilisations."} +{ "name": "Galactic Sector QQ7 Active J Gamma", "date":1367366400000, "datetime":1367366400000, "kind": "Galaxy", "position": 4, "description": "Galactic Sector QQ7 Active J Gamma contains the Sun Zarss, the planet Preliumtarn of the famed Sevorbeupstry and Quentulus Quazgar Mountains."} +{ "name": "Aldebaran", "date":1373932800000, "datetime":1373932800000, "kind": "Star System", "position": 1, "description": "Max Quordlepleen claims that the only thing left after the end of the Universe will be the sweets trolley and a fine selection of Aldebaran liqueurs."} +{ "name": "Algol", "date":1373932800000, "datetime":1373932800000, "kind": "Star System", "position": 2, "description": "Algol is the home of the Algolian Suntiger, the tooth of which is one of the ingredients of the Pan Galactic Gargle Blaster."} +{ "name": "Alpha Centauri", "date":308534400000, "datetime":308534400000, "kind": "Star System", "position": 3, "description": "4.1 light-years northwest of earth"} +{ "name": "Altair", "date":1373932800000, "datetime":1373932800000, "kind": "Star System", "position": 4, "description": "The Altairian dollar is one of three freely convertible currencies in the galaxy, though by the time of the novels it had apparently recently collapsed."} +{ "name": "Allosimanius Syneca", "date":1373932800000, "datetime":1373932800000, "kind": "Planet", "position": 1, "description": "Allosimanius Syneca is a planet noted for ice, snow, mind-hurtling beauty and stunning cold."} +{ "name": "Argabuthon", "date":1373932800000, "datetime":1373932800000, "kind": "Planet", "position": 2, "description": "It is also the home of Prak, a man placed into solitary confinement after an overdose of truth drug caused him to tell the Truth in its absolute and final form, causing anyone to hear it to go insane."} +{ "name": "Arkintoofle Minor", "date":308534400000, "datetime":308534400000, "kind": "Planet", "position": 3, "description": "Motivated by the fact that the only thing in the Universe that travels faster than light is bad news, the Hingefreel people native to Arkintoofle Minor constructed a starship driven by bad news."} +{ "name": "Bartledan", "date":1373932800000, "datetime":1373932800000, "kind": "Planet", "position": 4, "description": "An Earthlike planet on which Arthur Dent lived for a short time, Bartledan is inhabited by Bartledanians, a race that appears human but only physically."} +{ "name": "Folfanga", "date":1373932800000, "datetime":1373932800000, "kind": "Star System", "position": 5, "description": "Folfanga is a star system, the fourth planet of which is inhabited by a species of small slug, of the genus A-Rth-Urp-Hil-Ipdenu."} +{ "name": "Galaxy", "date":1373932800000, "datetime":1373932800000, "kind": "Galaxy", "position": 6, "description": "The end of the Galaxy."}