MCPcopy Create free account
hub / github.com/python-pendulum/pendulum / test_unix_clock

Function test_unix_clock

tests/tz/test_local_timezone.py:27–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25 sys.platform == "win32", reason="Test only available for UNIX systems"
26)
27def test_unix_clock():
28 # A ZONE setting in the target path of a symbolic linked localtime,
29 # f ex systemd distributions
30 local_path = os.path.join(os.path.split(__file__)[0], "..")
31 tz = _get_unix_timezone(_root=os.path.join(local_path, "fixtures", "tz", "clock"))
32
33 assert tz.name == "Europe/Zurich"
34
35
36@pytest.mark.skipif(sys.platform != "win32", reason="Test only available for Windows")

Callers

nothing calls this directly

Calls 1

_get_unix_timezoneFunction · 0.90

Tested by

no test coverage detected