Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finished behavioral testing of interpolated layer and fixed some bugs…
… discovered
- Loading branch information
Showing
9 changed files
with
71 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
__author__ = 'carolinux' | ||
|
||
import unittest | ||
from TimeManager import layer_settings | ||
|
||
|
||
INTERP_SAVESTRING="timespans20150228135607432;;ARRIVAL;ARRIVAL;True;%Y-%m-%d %H:%M:%S;0;;True" | ||
NOINTERP_SAVESTRING="tweets20150228140256944;;T;T;True;%Y-%m-%d %H:%M:%S;0;;False" | ||
|
||
class TestLayerSettings(unittest.TestCase): | ||
|
||
def test_import_savestring(self): | ||
ls = layer_settings.getSettingsFromSaveStr(INTERP_SAVESTRING) | ||
assert(ls.interpolationEnabled) | ||
ls = layer_settings.getSettingsFromSaveStr(NOINTERP_SAVESTRING) | ||
assert(not ls.interpolationEnabled) |
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