diff options
author | Gilad Beeri <giladb.dev@gmail.com> | 2018-06-20 10:33:13 +0300 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2018-07-10 19:18:32 +0200 |
commit | e7591a042ba504bf5ec6a565f80505e5ea45e7af (patch) | |
tree | 56edfa78de90a7e75241d621bfb9fe3d367b8390 | |
parent | 35c2b32d0c4dad1dc69cbb77293aa6ff515c76f5 (diff) |
tests: fixed python template - import error and style
-rw-r--r-- | gr-utils/python/modtool/templates.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gr-utils/python/modtool/templates.py b/gr-utils/python/modtool/templates.py index c88d3d7ea6..6586830d82 100644 --- a/gr-utils/python/modtool/templates.py +++ b/gr-utils/python/modtool/templates.py @@ -494,22 +494,22 @@ ${str_to_python_comment($license)} from gnuradio import gr, gr_unittest from gnuradio import blocks #if $lang == 'cpp' -import ${modname}_swig as ${modname} +import ${modname}.${modname}_swig as ${modname} #else from ${blockname} import ${blockname} #end if -class qa_$blockname (gr_unittest.TestCase): - def setUp (self): - self.tb = gr.top_block () +class qa_${blockname}(gr_unittest.TestCase): + def setUp(self): + self.tb = gr.top_block() - def tearDown (self): + def tearDown(self): self.tb = None - def test_001_t (self): + def test_001_t(self): # set up fg - self.tb.run () + self.tb.run() # check data |