Skip to content

Commit

Permalink
Test with ujson
Browse files Browse the repository at this point in the history
  • Loading branch information
JustAnotherArchivist committed Mar 21, 2024
1 parent 87bc289 commit 40122c2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions tests/test_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,3 +706,7 @@ def test_modify_metadata(nasa_item, nasa_metadata):
secret_key='b')
# Test that item re-initializes
assert nasa_item.metadata['title'] == 'new title'


def test_hash_item(nasa_metadata, nasa_item, session):
assert hash(nasa_item)
7 changes: 6 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py38,py39,py310,py311,py312,pypy39,pypy310
envlist = py38,py39,py310,py311,py312,py312ujson,pypy39,pypy310

[testenv]
deps = -r tests/requirements.txt
Expand All @@ -21,3 +21,8 @@ basepython=python3.11

[testenv:py312]
basepython=python3.12

[testenv:py312ujson]
basepython=python3.12
deps = -r tests/requirements.txt
ujson

0 comments on commit 40122c2

Please sign in to comment.