File: test_server.py

package info (click to toggle)
pyoctoprintapi 0.1.14-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 172 kB
  • sloc: python: 750; makefile: 6; sh: 5
file content (10 lines) | stat: -rw-r--r-- 295 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
"""Test server information API."""
import json

from pyoctoprintapi.server import OctoprintServerInfo
from fixtures import TEST_SERVER

def test_properties():
    server = OctoprintServerInfo(json.loads(TEST_SERVER))
    assert server.safe_mode == "bad_file"
    assert server.version == "1.5.3"