| tmpdir = local('/tmp/pytest-of-root/pytest-10/test_load_configuration0')
|
|
|
| def test_load_configuration(tmpdir):
|
| config_filename = str(tmpdir.join('ss.conf'))
|
| assert ss.load_configuration(config_filename) == ss.Configuration()
|
|
|
| with open(config_filename, 'w') as f:
|
| lines = [
|
| '[ss]',
|
| 'languages = br',
|
| 'recursive = yes',
|
| 'skip = on',
|
| 'mkv = 1',
|
| 'parallel_jobs = 4',
|
| ]
|
| f.write('\n'.join(lines))
|
|
|
| loaded = ss.load_configuration(str(tmpdir.join('ss.conf')))
|
| > assert loaded == ss.Configuration(['br'], recursive=True, skip=True,
|
| mkv=True, parallel_jobs=4)
|
| E TypeError: Configuration.__init__() got an unexpected keyword argument 'parallel_jobs'
|
|
|
| tests/test_ss.py:213: TypeError
|