iamkubi / pydactyl

Python wrapper for the Pterodactyl Panel API
MIT License
69 stars 21 forks source link

Add an integration test #60

Open iamkubi opened 2 years ago

iamkubi commented 2 years ago

Create a test that lets you plugin panel credentials, makes a bunch/all of the pydactyl api calls against the panel, then compares the output against a known good.

Ideally it would be automated so that it spins up a panel using the official docker image(s). It could either load the database with known good data, or make API calls to create the known good data (e.g. create_node(name='integration_test_node') then get_node() that checks that the name was set).

A mock API server would likely be effort to maintain and decrease the accuracy of the integration test.