-
-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Also add a bit more tests and rename dirs to make more sense - Test that classes make it out when using defs only importer
- Loading branch information
Showing
5 changed files
with
35 additions
and
9 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
File renamed without changes.
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 |
---|---|---|
@@ -1,16 +1,18 @@ | ||
import ipynb.fs.defs.a as a | ||
import ipynb.fs.defs.a.foo as foo | ||
import ipynb.fs.defs.pure_ipynb as a | ||
import ipynb.fs.defs.pure_ipynb.foo as foo | ||
|
||
|
||
def test_a(): | ||
assert a.init() == 'init' | ||
|
||
def test_foo(): | ||
assert foo.foo() == 'foo' | ||
rawr = foo.RAWR() | ||
assert rawr.rawr() == 'rawr' | ||
|
||
def test_no_execute(): | ||
assert not hasattr(foo, 'bar') | ||
|
||
|
||
def test_allcaps_execute(): | ||
assert foo.WAT == 'boo' | ||
|
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