Move tests to the root of the repository, in keeping with more common convention.
This commit is contained in:
parent
f9a9b42c58
commit
a125df991b
30 changed files with 7 additions and 7 deletions
19
tests/integration/config/test_legacy.py
Normal file
19
tests/integration/config/test_legacy.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
from io import StringIO
|
||||
|
||||
from collections import OrderedDict
|
||||
import string
|
||||
|
||||
from borgmatic.config import legacy as module
|
||||
|
||||
|
||||
def test_parse_section_options_with_punctuation_should_return_section_options():
|
||||
parser = module.RawConfigParser()
|
||||
parser.read_file(StringIO('[section]\nfoo: {}\n'.format(string.punctuation)))
|
||||
|
||||
section_format = module.Section_format(
|
||||
'section', (module.Config_option('foo', str, required=True),)
|
||||
)
|
||||
|
||||
config = module.parse_section_options(parser, section_format)
|
||||
|
||||
assert config == OrderedDict((('foo', string.punctuation),))
|
||||
Loading…
Add table
Add a link
Reference in a new issue