Skip to content

Commit b786cd4

Browse files
authored
Merge pull request #84 from python-astrodynamics/feature/predicate-mediumtext
Understand mediumtext predicate type
2 parents 3aeba56 + ed89108 commit b786cd4

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

docs/changelog.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ Change Log
44
Unreleased_
55
-----------
66

7-
N/A
7+
Fixed
8+
~~~~~
9+
10+
- The ‘mediumtext’ predicate type is now understood.
811

912
1.3.0_ - 2024-05-07
1013
-------------------

src/spacetrack/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,7 @@ def _parse_predicates_data(self, predicates_data):
766766
"char": "str",
767767
"varchar": "str",
768768
"longtext": "str",
769+
"mediumtext": "str",
769770
"text": "str",
770771
# varbinary only used for 'file' request class, for the
771772
# 'file_link' predicate.

tests/test_spacetrack.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,7 @@ def test_dir():
476476
(Predicate("a", "date"), "2017-01-01", dt.date(2017, 1, 1)),
477477
(Predicate("a", "enum", values=("a", "b")), "a", "a"),
478478
(Predicate("a", "int"), None, None),
479+
(Predicate("a", "mediumtext"), "Hello", "Hello"),
479480
],
480481
)
481482
def test_predicate_parse_type(predicate, input, output):

0 commit comments

Comments
 (0)