Skip to content

Commit

Permalink
fix: sub module conflict error
Browse files Browse the repository at this point in the history
  • Loading branch information
StellarisW committed Nov 29, 2024
1 parent eef2455 commit bb1e02a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ def test_constants():

def test_include():
thrift = load('parser-cases/include.thrift', include_dirs=[
'./parser-cases'])
'./parser-cases'], module_name='include_thrift')
assert thrift.datetime == 1422009523
assert sys.modules['include_thrift'] is not None
assert sys.modules['included_thrift'] is not None
assert sys.modules['include.included_1_thrift'] is not None
assert sys.modules['include.included_2_thrift'] is not None


def test_include_with_module_name_prefix():
Expand Down

0 comments on commit bb1e02a

Please sign in to comment.