| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,6 +10,6 @@ cover/ | |||
| 10 | 10 | /doc/_build | |
| 11 | 11 | nbproject | |
| 12 | 12 | *.sublime-workspace | |
| 13 | - | ||
| 13 | + .DS_Store | ||
| 14 | 14 | /*egg-info | |
| 15 | 15 | /.tox | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -354,7 +354,7 @@ def _get_config_path(self, config_level): | |||
| 354 | 354 | if config_level == "system": | |
| 355 | 355 | return "/etc/gitconfig" | |
| 356 | 356 | elif config_level == "user": | |
| 357 | - config_home = os.environ.get("XDG_CONFIG_HOME") or join(os.environ.get("HOME", '~'), ".config") | ||
| 357 | + config_home = os.environ.get("XDG_CONFIG_HOME") or os.path.join(os.environ.get("HOME", '~'), ".config") | ||
| 358 | 358 | return os.path.expanduser(join(config_home, "git", "config")) | |
| 359 | 359 | elif config_level == "global": | |
| 360 | 360 | return os.path.normpath(os.path.expanduser("~/.gitconfig")) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -365,6 +365,11 @@ def test_config_writer(self): | |||
| 365 | 365 | pass | |
| 366 | 366 | # END for each config level | |
| 367 | 367 | ||
| 368 | + def test_config_level_paths(self): | ||
| 369 | + for config_level in self.rorepo.config_level: | ||
| 370 | + assert self.rorepo._get_config_path(config_level) | ||
| 371 | + # end for each config level | ||
| 372 | + | ||
| 368 | 373 | def test_creation_deletion(self): | |
| 369 | 374 | # just a very quick test to assure it generally works. There are | |
| 370 | 375 | # specialized cases in the test_refs module | |
| Back | FazBrowse Home | New Git URL |
0 commit comments