-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: split testcase to independent file
- Loading branch information
1 parent
303c611
commit 8e1f11a
Showing
2 changed files
with
39 additions
and
18 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,35 @@ | ||
# 每个对象访问一边完整的内容或者指定内容看是否出错 | ||
|
||
import os | ||
import sys | ||
import unittest | ||
|
||
current_dir = os.path.dirname(os.path.realpath(__file__)) | ||
src_dir = os.path.join(current_dir, "../../src") | ||
sys.path.append(src_dir) | ||
|
||
|
||
class TestPluginDriverPoly(unittest.TestCase): | ||
def setUp(self) -> None: | ||
pass | ||
|
||
def test_plugin_driver_geojson_import(self): | ||
from yuheng.plugin.driver_geojson.__main__ import read | ||
from pprint import pprint | ||
|
||
ans = read( | ||
os.path.join( | ||
os.path.dirname(__file__), | ||
"..", | ||
"assets", | ||
"geojson", | ||
"geojsonio-ring2.geojson", | ||
# "geojsonio-commute-bus.geojson", | ||
), | ||
output_target="yuheng", | ||
) | ||
pprint(ans) | ||
|
||
|
||
if __name__ == "__main__": | ||
unittest.main() |