Skip to content

Commit

Permalink
fix black
Browse files Browse the repository at this point in the history
  • Loading branch information
Renrut5 committed Oct 10, 2024
1 parent fd0aeb2 commit ec0d902
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pynautobot/core/endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,7 @@ def run_and_wait(self, *args, api_version=None, interval=5, max_rechecks=50, **k

raise ValueError("Did not receieve completed job result for job.")


class GraphqlEndpoint(Endpoint):
"""Extend Endpoint class to support run method for graphql queries."""

Expand Down
1 change: 1 addition & 0 deletions tests/unit/test_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ def test_run_and_wait_no_complete(self, mock_post, mock_get):
with self.assertRaises(ValueError):
test_obj.run_and_wait(job_id="test", interval=1, max_rechecks=2)


class GraphqlEndPointTestCase(unittest.TestCase):
def test_invalid_arg(self):
with self.assertRaises(
Expand Down

0 comments on commit ec0d902

Please sign in to comment.