-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed functions getting paths and added tests (#83)
- Loading branch information
1 parent
6ab03b5
commit 71c43a6
Showing
2 changed files
with
21 additions
and
2 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
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,19 @@ | ||
import unittest | ||
import os | ||
import amulet_nbt | ||
|
||
|
||
class LegacyNBTTests(unittest.TestCase): | ||
def test_version(self) -> None: | ||
self.assertIsInstance(amulet_nbt.__version__, str) | ||
self.assertIsInstance(amulet_nbt.__major__, int) | ||
|
||
def test_paths(self) -> None: | ||
self.assertIsInstance(amulet_nbt.get_include(), str) | ||
self.assertIsInstance(amulet_nbt.get_source(), str) | ||
self.assertTrue(os.path.isdir(amulet_nbt.get_include())) | ||
self.assertTrue(os.path.isdir(amulet_nbt.get_source())) | ||
|
||
|
||
if __name__ == "__main__": | ||
unittest.main() |