mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Bump simplejson from 3.17.6 to 3.18.0 (#1898)
* Bump simplejson from 3.17.6 to 3.18.0 Bumps [simplejson](https://github.com/simplejson/simplejson) from 3.17.6 to 3.18.0. - [Release notes](https://github.com/simplejson/simplejson/releases) - [Changelog](https://github.com/simplejson/simplejson/blob/master/CHANGES.txt) - [Commits](https://github.com/simplejson/simplejson/compare/v3.17.6...v3.18.0) --- updated-dependencies: - dependency-name: simplejson dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Update simplejson==3.18.0 Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> [skip ci]
This commit is contained in:
parent
60da559332
commit
259a96995a
6 changed files with 61 additions and 23 deletions
|
@ -110,22 +110,47 @@ class TestNamedTuple(unittest.TestCase):
|
|||
|
||||
def test_asdict_not_callable_dump(self):
|
||||
for f in CONSTRUCTORS:
|
||||
self.assertRaises(TypeError,
|
||||
json.dump, f(DeadDuck()), StringIO(), namedtuple_as_object=True)
|
||||
self.assertRaises(
|
||||
TypeError,
|
||||
json.dump,
|
||||
f(DeadDuck()),
|
||||
StringIO(),
|
||||
namedtuple_as_object=True
|
||||
)
|
||||
sio = StringIO()
|
||||
json.dump(f(DeadDict()), sio, namedtuple_as_object=True)
|
||||
self.assertEqual(
|
||||
json.dumps(f({})),
|
||||
sio.getvalue())
|
||||
self.assertRaises(
|
||||
TypeError,
|
||||
json.dump,
|
||||
f(Value),
|
||||
StringIO(),
|
||||
namedtuple_as_object=True
|
||||
)
|
||||
|
||||
def test_asdict_not_callable_dumps(self):
|
||||
for f in CONSTRUCTORS:
|
||||
self.assertRaises(TypeError,
|
||||
json.dumps, f(DeadDuck()), namedtuple_as_object=True)
|
||||
self.assertRaises(
|
||||
TypeError,
|
||||
json.dumps,
|
||||
f(Value),
|
||||
namedtuple_as_object=True
|
||||
)
|
||||
self.assertEqual(
|
||||
json.dumps(f({})),
|
||||
json.dumps(f(DeadDict()), namedtuple_as_object=True))
|
||||
|
||||
def test_asdict_unbound_method_dumps(self):
|
||||
for f in CONSTRUCTORS:
|
||||
self.assertEqual(
|
||||
json.dumps(f(Value), default=lambda v: v.__name__),
|
||||
json.dumps(f(Value.__name__))
|
||||
)
|
||||
|
||||
def test_asdict_does_not_return_dict(self):
|
||||
if not mock:
|
||||
if hasattr(unittest, "SkipTest"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue