Changeset View
Changeset View
Standalone View
Standalone View
swh/graphql/tests/unit/resolvers/test_resolvers.py
Show All 21 Lines | @pytest.mark.parametrize( | ||||
(rs.origin_resolver, resolvers.origin.OriginNode), | (rs.origin_resolver, resolvers.origin.OriginNode), | ||||
(rs.visit_resolver, resolvers.visit.OriginVisitNode), | (rs.visit_resolver, resolvers.visit.OriginVisitNode), | ||||
(rs.latest_visit_resolver, resolvers.visit.LatestVisitNode), | (rs.latest_visit_resolver, resolvers.visit.LatestVisitNode), | ||||
( | ( | ||||
rs.latest_visit_status_resolver, | rs.latest_visit_status_resolver, | ||||
resolvers.visit_status.LatestVisitStatusNode, | resolvers.visit_status.LatestVisitStatusNode, | ||||
), | ), | ||||
(rs.snapshot_resolver, resolvers.snapshot.SnapshotNode), | (rs.snapshot_resolver, resolvers.snapshot.SnapshotNode), | ||||
(rs.visit_snapshot_resolver, resolvers.snapshot.VisitSnapshotNode), | # (rs.visit_snapshot_resolver, resolvers.snapshot.VisitSnapshotNode), | ||||
vlorentz: why this change? | |||||
jayeshvAuthorUnsubmitted Done Inline ActionsThis is a generic test to make sure the correct resolver is called. It is assuming obj (the parent object) can be None. For visit_snapshot the assumption is not correct any more. jayeshv: This is a generic test to make sure the correct resolver is called. It is assuming obj (the… | |||||
(rs.revision_resolver, resolvers.revision.RevisionNode), | (rs.revision_resolver, resolvers.revision.RevisionNode), | ||||
(rs.revision_directory_resolver, resolvers.directory.RevisionDirectoryNode), | (rs.revision_directory_resolver, resolvers.directory.RevisionDirectoryNode), | ||||
(rs.release_resolver, resolvers.release.ReleaseNode), | (rs.release_resolver, resolvers.release.ReleaseNode), | ||||
(rs.directory_resolver, resolvers.directory.DirectoryNode), | (rs.directory_resolver, resolvers.directory.DirectoryNode), | ||||
(rs.content_resolver, resolvers.content.ContentNode), | (rs.content_resolver, resolvers.content.ContentNode), | ||||
], | ], | ||||
) | ) | ||||
def test_node_resolver(self, mocker, dummy_node, resolver_func, node_cls): | def test_node_resolver(self, mocker, dummy_node, resolver_func, node_cls): | ||||
▲ Show 20 Lines • Show All 93 Lines • Show Last 20 Lines |
why this change?