-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* tweaks to tests and code to improve py coverage * removed fstrings in setup.py * disable -Wattributes g++ on 18.04 produces a bunch of warnings otherwise * try to fix darwin tests
- Loading branch information
Showing
10 changed files
with
114 additions
and
58 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
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
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,38 @@ | ||
#!/usr/bin/env python3 | ||
|
||
# test fractmain | ||
|
||
import os.path | ||
|
||
from . import testbase | ||
|
||
from fract4d import fractmain | ||
from fract4d.options import Arguments | ||
|
||
|
||
class Test(testbase.TestSetup): | ||
def testBasic(self): | ||
c = self.userConfig | ||
fm = fractmain.T(c) | ||
options = Arguments().parse_args(["--save", "foo.png"]) | ||
fm.run(options) | ||
self.assertTrue(os.path.exists("foo.png")) | ||
os.remove("foo.png") | ||
|
||
def testBuildOnly(self): | ||
c = self.userConfig | ||
fm = fractmain.T(c) | ||
options = Arguments().parse_args(["--buildonly", "test.so"]) | ||
|
||
fm.run(options) | ||
self.assertTrue(os.path.exists("test.so")) | ||
os.remove("test.so") | ||
if os.path.exists("test.so.c"): | ||
os.remove("test.so.c") | ||
|
||
def testSinglePoint(self): | ||
c = self.userConfig | ||
fm = fractmain.T(c) | ||
options = Arguments().parse_args(["--singlepoint"]) | ||
|
||
fm.run(options) |
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
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