-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into release/5.3
- Loading branch information
Showing
6 changed files
with
49 additions
and
18 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
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,15 @@ | ||
''' | ||
Test AD Sim Server CLI. | ||
''' | ||
from unittest.mock import Mock | ||
import sys | ||
import pylint.lint | ||
|
||
from pvapy.cli import adSimServer | ||
|
||
def testLint(monkeypatch): | ||
''' Test for linting errors ''' | ||
monkeypatch.setattr(sys, 'exit', Mock()) | ||
pylint_opts = ['pvapy.cli.adSimServer', '--disable=all', '--enable=E,F', '--generated-members="pva.*"'] | ||
pylint.lint.Run(pylint_opts) | ||
sys.exit.assert_called_once_with(0) |
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
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,15 @@ | ||
''' | ||
Test Mirror Server CLI. | ||
''' | ||
from unittest.mock import Mock | ||
import sys | ||
import pylint.lint | ||
|
||
from pvapy.cli import mirrorServer | ||
|
||
def testLint(monkeypatch): | ||
''' Test for linting errors ''' | ||
monkeypatch.setattr(sys, 'exit', Mock()) | ||
pylint_opts = ['pvapy.cli.mirrorServer', '--disable=all', '--enable=E,F', '--generated-members="pva.*"'] | ||
pylint.lint.Run(pylint_opts) | ||
sys.exit.assert_called_once_with(0) |