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

Function test_unix_etc_timezone_dir

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

Source from the content-addressed store, hash-verified

44 sys.platform == "win32", reason="Test only available for UNIX systems"
45)
46def test_unix_etc_timezone_dir():
47 # Should not fail if `/etc/timezone` is a folder
48 local_path = os.path.join(os.path.split(__file__)[0], "..")
49 root_path = os.path.join(local_path, "fixtures", "tz", "timezone_dir")
50 tz = _get_unix_timezone(_root=root_path)
51
52 assert tz.name == "Europe/Paris"

Callers

nothing calls this directly

Calls 1

_get_unix_timezoneFunction · 0.90

Tested by

no test coverage detected