Skip to content

Commit

Permalink
Merge pull request #84 from python-astrodynamics/feature/predicate-me…
Browse files Browse the repository at this point in the history
…diumtext

Understand mediumtext predicate type
  • Loading branch information
RazerM authored Jul 31, 2024
2 parents 3aeba56 + ed89108 commit b786cd4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ Change Log
Unreleased_
-----------

N/A
Fixed
~~~~~

- The ‘mediumtext’ predicate type is now understood.

1.3.0_ - 2024-05-07
-------------------
Expand Down
1 change: 1 addition & 0 deletions src/spacetrack/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,7 @@ def _parse_predicates_data(self, predicates_data):
"char": "str",
"varchar": "str",
"longtext": "str",
"mediumtext": "str",
"text": "str",
# varbinary only used for 'file' request class, for the
# 'file_link' predicate.
Expand Down
1 change: 1 addition & 0 deletions tests/test_spacetrack.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ def test_dir():
(Predicate("a", "date"), "2017-01-01", dt.date(2017, 1, 1)),
(Predicate("a", "enum", values=("a", "b")), "a", "a"),
(Predicate("a", "int"), None, None),
(Predicate("a", "mediumtext"), "Hello", "Hello"),
],
)
def test_predicate_parse_type(predicate, input, output):
Expand Down

0 comments on commit b786cd4

Please sign in to comment.