test suite: minor fixes and cleanups
This commit is contained in:
parent
bf8aae3c14
commit
83f585fa48
2 changed files with 13 additions and 14 deletions
|
|
@ -130,7 +130,7 @@ class CmdTestCfgFile(CmdTestBase):
|
|||
e = CfgFileSampleUsr.altered_by_user_fs.format(self.path('sample'))
|
||||
return self.bad_sample(s, e)
|
||||
|
||||
def old_sample_common(self, old_set=False, args=[], pexpect_spawn=False):
|
||||
def _old_sample_common(self, old_set=False, args=[], pexpect_spawn=False):
|
||||
d = (
|
||||
self.read_from_cfgfile('sys').replace('monero_', 'zcash_').splitlines()
|
||||
+ ['', '# Uncomment to make foo true:', '# foo true']
|
||||
|
|
@ -175,11 +175,11 @@ class CmdTestCfgFile(CmdTestBase):
|
|||
|
||||
def old_sample(self):
|
||||
self.write_to_cfgfile('usr', ['testnet true', 'rpc_password passwOrd'])
|
||||
return self.old_sample_common(args=['parse_test'])
|
||||
return self._old_sample_common(args=['parse_test'])
|
||||
|
||||
def old_sample_bad_var(self):
|
||||
self.write_to_cfgfile('usr', ['foo true', 'bar false'])
|
||||
t = self.old_sample_common(
|
||||
t = self._old_sample_common(
|
||||
old_set = True,
|
||||
pexpect_spawn = gc.platform != 'win32')
|
||||
t.expect('unrecognized option')
|
||||
|
|
|
|||
|
|
@ -74,29 +74,28 @@ init_tests() {
|
|||
d_ruff="code errors with Ruff static analyzer"
|
||||
e_ruff="Error checking failed!"
|
||||
t_ruff="
|
||||
b $ruff check setup.py
|
||||
b $ruff check mmgen
|
||||
b $ruff check test
|
||||
b $ruff check examples
|
||||
- $ruff check setup.py
|
||||
- $ruff check mmgen
|
||||
- $ruff check test
|
||||
- $ruff check examples
|
||||
"
|
||||
|
||||
d_pylint="code errors with Pylint static analyzer"
|
||||
e_pylint="Error checking failed!"
|
||||
t_pylint="
|
||||
b $pylint mmgen
|
||||
b $pylint test
|
||||
b $pylint --disable=relative-beyond-top-level test/cmdtest_d
|
||||
a $pylint --ignore-paths '.*/eth/.*' mmgen
|
||||
a $pylint --ignore-paths '.*/dep.py,.*/testdep.py' test
|
||||
a $pylint --ignore-paths '.*/ethdev.py' --disable=relative-beyond-top-level test/cmdtest_d
|
||||
- $pylint setup.py
|
||||
- $pylint mmgen
|
||||
- $pylint test
|
||||
- $pylint --disable=relative-beyond-top-level test/cmdtest_d
|
||||
- $pylint examples
|
||||
"
|
||||
if [ "$SKIP_ALT_DEP" ]; then t_pylint_skip='b'; else t_pylint_skip='a'; fi
|
||||
|
||||
d_bandit="code vulnerabilities with Bandit static analyzer"
|
||||
e_bandit="Error checking failed!"
|
||||
t_bandit="
|
||||
- $bandit setup.py
|
||||
- $bandit mmgen
|
||||
- $bandit examples
|
||||
"
|
||||
|
||||
d_daemon="low-level subsystems involving coin daemons"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue