Skip to content

Commit e4c9341

Browse files
committed
Merge pull request #74 from chaimleib-scorm/master
simplified imports from external modules; package-level docstring, other docstring edits
2 parents ce5298d + 93252bb commit e4c9341

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+329
-263
lines changed

test/about_test.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
from main import setup_tincan_path
1919
setup_tincan_path()
2020
from test_utils import TinCanBaseTestCase
21-
from tincan.version import Version
22-
from tincan.about import About
21+
from tincan import Version, About
2322

2423

2524
class AboutTest(TinCanBaseTestCase):

test/activity_test.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@
1717
if __name__ == '__main__':
1818
from main import setup_tincan_path
1919
setup_tincan_path()
20-
from tincan.activity import Activity
21-
from tincan.activity_definition import ActivityDefinition
22-
from tincan.interaction_component_list import InteractionComponentList
23-
from tincan.language_map import LanguageMap
20+
from tincan import (
21+
Activity,
22+
ActivityDefinition,
23+
InteractionComponentList,
24+
LanguageMap,
25+
)
2426

2527

2628
class ActivityTest(unittest.TestCase):

test/activitydefinition_test.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@
1717
if __name__ == '__main__':
1818
from main import setup_tincan_path
1919
setup_tincan_path()
20-
from tincan.activity_definition import ActivityDefinition
21-
from tincan.language_map import LanguageMap
22-
from tincan.interaction_component_list import InteractionComponentList
23-
from tincan.interaction_component import InteractionComponent
20+
from tincan import (
21+
ActivityDefinition,
22+
LanguageMap,
23+
InteractionComponentList,
24+
InteractionComponent,
25+
)
2426

2527

2628
class ActivityDefinitionTest(unittest.TestCase):

test/activitylist_test.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
if __name__ == '__main__':
1818
from main import setup_tincan_path
1919
setup_tincan_path()
20-
from tincan.activity_list import ActivityList
21-
from tincan.activity import Activity
20+
from tincan import ActivityList, Activity
2221

2322

2423
class ActivityListTest(unittest.TestCase):

test/agent_test.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
if __name__ == '__main__':
1818
from main import setup_tincan_path
1919
setup_tincan_path()
20-
from tincan.agent import Agent
21-
from tincan.agent_account import AgentAccount
20+
from tincan import Agent, AgentAccount
2221

2322

2423
class AgentTest(unittest.TestCase):

test/attachment_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
if __name__ == '__main__':
1818
from main import setup_tincan_path
1919
setup_tincan_path()
20-
from tincan.attachment import Attachment
21-
from tincan.language_map import LanguageMap
20+
from tincan import Attachment, LanguageMap
21+
2222

2323
class AttachmentTest(unittest.TestCase):
2424

test/context_test.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@
1717
if __name__ == '__main__':
1818
from main import setup_tincan_path
1919
setup_tincan_path()
20-
from tincan.context import Context
21-
from tincan.context_activities import ContextActivities
22-
from tincan.activity import Activity
23-
from tincan.agent import Agent
24-
from tincan.statement_ref import StatementRef
25-
from tincan.extensions import Extensions
26-
from tincan.group import Group
20+
from tincan import (
21+
Context,
22+
ContextActivities,
23+
Activity,
24+
Agent,
25+
StatementRef,
26+
Extensions,
27+
Group,
28+
)
2729
import uuid
2830
import re
2931

test/contextactivities_test.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@
1717
if __name__ == '__main__':
1818
from main import setup_tincan_path
1919
setup_tincan_path()
20-
from tincan.context_activities import ContextActivities
21-
from tincan.activity import Activity
22-
from tincan.activity_list import ActivityList
20+
from tincan import ContextActivities, Activity, ActivityList
2321

2422

2523
class ContextActivitiesTest(unittest.TestCase):

test/documents/activity_profile_document_test.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@
2222
sys.path.insert(0, dirname(dirname(dirname(abspath(__file__)))))
2323
from test.main import setup_tincan_path
2424
setup_tincan_path()
25-
from tincan.documents import ActivityProfileDocument
26-
from tincan.activity import Activity
27-
from tincan.activity_definition import ActivityDefinition
28-
from tincan.language_map import LanguageMap
25+
from tincan import (
26+
ActivityProfileDocument,
27+
Activity,
28+
ActivityDefinition,
29+
LanguageMap,
30+
)
2931

3032

3133
class ActivityProfileDocumentTest(unittest.TestCase):

test/documents/agent_profile_document_test.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
sys.path.insert(0, dirname(dirname(dirname(abspath(__file__)))))
2323
from test.main import setup_tincan_path
2424
setup_tincan_path()
25-
from tincan.documents import AgentProfileDocument
26-
from tincan.agent import Agent
25+
from tincan import AgentProfileDocument, Agent
2726

2827

2928
class AgentProfileDocumentTest(unittest.TestCase):

0 commit comments

Comments
 (0)