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

Function test_unix_symlink

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

Source from the content-addressed store, hash-verified

13 sys.platform == "win32", reason="Test only available for UNIX systems"
14)
15def test_unix_symlink():
16 # A ZONE setting in the target path of a symbolic linked localtime,
17 # f ex systemd distributions
18 local_path = os.path.join(os.path.split(__file__)[0], "..")
19 tz = _get_unix_timezone(_root=os.path.join(local_path, "fixtures", "tz", "symlink"))
20
21 assert tz.name == "Europe/Paris"
22
23
24@pytest.mark.skipif(

Callers

nothing calls this directly

Calls 1

_get_unix_timezoneFunction · 0.90

Tested by

no test coverage detected