nautobot_ssot_vsphere.tests.fixtures

Fixtures.

In your test file, simply import: ` from nautobot_ssot_vsphere.tests.utilities import json_fixture from nautobot_ssot_vsphere.tests.fixtures import real_path ` Then you can simply load fixtures that you have added to the fixtures directory and assign them to your mocks by using the json_fixture utility:

json_fixture(f”{FIXTURES}/get_projects.json”)

This will return a loaded json object.

Submodules

Package Contents

Functions

create_env()

Create Env.

json_fixture(json_file_path)

Load and return JSON Fixture.

nautobot_ssot_vsphere.tests.fixtures.create_env()

Create Env.

nautobot_ssot_vsphere.tests.fixtures.json_fixture(json_file_path)

Load and return JSON Fixture.