File: conftest.py

package info (click to toggle)
pypuppetdb 3.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 508 kB
  • sloc: python: 3,810; makefile: 127; sh: 9
file content (19 lines) | stat: -rw-r--r-- 298 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import pytest
import pypuppetdb


# Set up our API objects
@pytest.fixture
def api():
    return pypuppetdb.api.API()


@pytest.fixture
def token_api():
    return pypuppetdb.api.API(token="tokenstring")


@pytest.fixture
def utc():
    """Create a UTC object."""
    return pypuppetdb.utils.UTC()