-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Load the VCS module when they are configured
- Loading branch information
Showing
2 changed files
with
31 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import sys | ||
|
||
class TestNoti: | ||
|
||
def test_import(self): | ||
# This test tries to make sure neither github nor gitlab would be loaded | ||
# by default. We only want to load those modules when they are configured | ||
# by the user. | ||
import noti | ||
|
||
assert not 'github' in sys.modules | ||
assert not 'gitlab' in sys.modules | ||
assert 'dateutil' in sys.modules |