Cobular / distest

A library used to do integration testing on discord bots
MIT License
29 stars 8 forks source link

Fix 'Global variable 'EXIT_CODE' undefined at the module level' issue in distest\__init__.py #9

Closed codefactor-io[bot] closed 5 years ago

codefactor-io[bot] commented 5 years ago

CodeFactor found an issue: Global variable 'EXIT_CODE' undefined at the module level

It's currently on: distest\__init__.py:71 Commit ba3b311a00837f97baaa389b0e2ec2c75e1711b5

I am fixing this now, moving the global variables back into init.py and adding local imports (avoids circular imports - yuck) where needed in other files.

Cobular commented 5 years ago

Fixed in b88bdea850f7ed6505569d229aac7c1e216a2199, moved the two globals TIMEOUT and EXIT_CODE back into __init__.py.

Updated version (now in __init__.py): https://github.com/JakeCover/distest/blob/b88bdea850f7ed6505569d229aac7c1e216a2199/distest/__init__.py#L36-L39