Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from mcepl/clean_tests
replace testlib with good ol' unittest
- Loading branch information
Showing
10 changed files
with
68 additions
and
825 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
include README.rst | ||
include CHANGES.rst | ||
include LICENSE.txt | ||
recursive-include lib *.py | ||
include *.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import unittest | ||
import appdirs | ||
|
||
class Test_AppDir(unittest.TestCase): | ||
def test_metadata(self): | ||
self.assertTrue(hasattr(appdirs, "__version__")) | ||
self.assertTrue(hasattr(appdirs, "__version_info__")) | ||
|
||
def test_helpers(self): | ||
self.assertTrue(isinstance( | ||
appdirs.user_data_dir('MyApp', 'MyCompany'), str)) | ||
self.assertTrue(isinstance( | ||
appdirs.site_data_dir('MyApp', 'MyCompany'), str)) | ||
self.assertTrue(isinstance( | ||
appdirs.user_cache_dir('MyApp', 'MyCompany'), str)) | ||
self.assertTrue(isinstance( | ||
appdirs.user_log_dir('MyApp', 'MyCompany'), str)) | ||
|
||
def test_dirs(self): | ||
dirs = appdirs.AppDirs('MyApp', 'MyCompany', version='1.0') | ||
self.assertTrue(isinstance(dirs.user_data_dir, str)) | ||
self.assertTrue(isinstance(dirs.site_data_dir, str)) | ||
self.assertTrue(isinstance(dirs.user_cache_dir, str)) | ||
self.assertTrue(isinstance(dirs.user_log_dir, str)) | ||
|
||
if __name__=="__main__": | ||
unittest.main() |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.