File: test_platform.py

package info (click to toggle)
python-keyring 25.6.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 560 kB
  • sloc: python: 1,929; sh: 17; makefile: 17
file content (15 lines) | stat: -rw-r--r-- 472 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import pytest

from keyring.util import platform_


@pytest.mark.skipif('platform.system() != "Linux"')
def test_platform_Linux():
    assert platform_.config_root == platform_._config_root_Linux
    assert platform_.data_root == platform_._data_root_Linux


@pytest.mark.skipif('platform.system() != "Windows"')
def test_platform_Windows():
    assert platform_.config_root == platform_._config_root_Windows
    assert platform_.data_root == platform_._data_root_Windows