Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 27, 2022
1 parent dd575e8 commit 741a0eb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jupyter_core/tests/test_paths.py
Expand Up @@ -103,29 +103,34 @@ def test_config_dir():
config = jupyter_config_dir()
assert config == home_jupyter


@macos
@use_platformdirs
def test_config_dir_darwin():
config = jupyter_config_dir()
assert config == realpath("~/Library/Preferences/Jupyter")


@windows
@use_platformdirs
def test_config_dir_windows():
config = jupyter_config_dir()
assert config == realpath(pjoin(os.environ.get("APPDATA", ""), "Local", "Jupyter"))


@linux
@use_platformdirs
def test_config_dir_linux():
config = jupyter_config_dir()
assert config == realpath("~/.config/jupyter")


def test_config_env_legacy():
with config_env:
config = jupyter_config_dir()
assert config == jupyter_config_env


@use_platformdirs
def test_config_env():
with config_env:
Expand Down Expand Up @@ -237,6 +242,7 @@ def test_runtime_dir_windows():
runtime = jupyter_runtime_dir()
assert runtime == realpath(pjoin(os.environ.get("LOCALAPPDATA", ""), "Jupyter", "runtime"))


@linux
def test_runtime_dir_linux_legacy():
with no_xdg:
Expand Down

0 comments on commit 741a0eb

Please sign in to comment.