Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Understand mediumtext predicate type #84

Merged
merged 1 commit into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading