Skip to content
This repository has been archived by the owner on Jan 14, 2024. It is now read-only.

Commit

Permalink
#62: Fallback to global path, when there is no local path - tests cov…
Browse files Browse the repository at this point in the history
…erage
  • Loading branch information
blackandred committed Dec 1, 2020
1 parent b46360c commit 08addeb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_packaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ def test_find_resource_directory(self):
def test_get_user_site_packages(self):
self.assertIsNotNone(rkd.packaging.get_user_site_packages())

def test_get_user_site_packages_fallbacks_when_no_user_site_packages_directory(self):
with mock.patch('sys.path', returns_value=[]):
self.assertEqual(rkd.packaging._get_global_site_packages(), rkd.packaging.get_user_site_packages())

def test_functionally_package_contains_complete_misc_directory(self):
"""
"misc" directory is essential for RKD to work. There were issues with packaging this directory that contains
Expand Down

0 comments on commit 08addeb

Please sign in to comment.