Skip to content

Commit

Permalink
fixed imports in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AkhilJ321 committed Feb 7, 2024
1 parent 828e2cc commit 985406c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/runtime/runtime-python.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generator.generateToFiles(
path.resolve(
// eslint-disable-next-line no-undef
__dirname,
"./runtime-python/test/main/"
"./runtime-python/src/main/"
),
{}
);
Expand Down
8 changes: 5 additions & 3 deletions test/runtime/runtime-python/test/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import unittest
from main.Address import Address
from main.NestedObject import NestedObject
import sys
sys.path.insert(1, '../src/main/')
from Address import Address
from NestedObject import NestedObject
import json

class AddressData:
Expand All @@ -16,7 +18,7 @@ def __init__(self, data):
'marriage': True,
'members': 3,
'arrayType': ['test1', 'test2'],
'nestedObject': {'test': 'test'},
'nestedObject': {'test': 'test', 'additionalProperties': {'prop': 'value'}},
'additionalProperties': {'prop': 'value'}
}
data_obj = Data(data)
Expand Down

0 comments on commit 985406c

Please sign in to comment.