mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-12 06:20:08 +01:00
refactor config.py
This commit is contained in:
parent
120f08d83b
commit
44261a46b1
2 changed files with 132 additions and 69 deletions
|
|
@ -9,16 +9,20 @@ def test_parse_default_config():
|
|||
buf.write(line + "\n")
|
||||
|
||||
buf.seek(0)
|
||||
cfg = config.parse_buffer(buf)
|
||||
cfg = config._parse_buffer(buf)
|
||||
|
||||
assert cfg
|
||||
assert cfg.current_version.endswith(".0001-dev")
|
||||
assert cfg.tag
|
||||
assert cfg.commit
|
||||
|
||||
# NOTE (mb 2018-11-10): These refer to the actual files
|
||||
# of the pycalver project. A different project would
|
||||
# have README.rst for example. To fully test this
|
||||
# we might create temporary projects.
|
||||
assert "setup.py" in cfg.file_patterns
|
||||
assert "setup.cfg" in cfg.file_patterns
|
||||
assert "README.rst" in cfg.file_patterns
|
||||
assert "README.md" in cfg.file_patterns
|
||||
|
||||
|
||||
def test_parse(tmpdir):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue