MCPcopy Create free account
hub / github.com/libgit2/pygit2 / test_add

Function test_add

test/test_config.py:84–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82
83
84def test_add() -> None:
85 with open(CONFIG_FILENAME, 'w') as new_file:
86 new_file.write('[this]\n\tthat = true\n')
87 new_file.write('[something "other"]\n\there = false')
88
89 config = Config()
90 config.add_file(CONFIG_FILENAME, 0)
91 assert 'this.that' in config
92 assert config.get_bool('this.that')
93 assert 'something.other.here' in config
94 assert not config.get_bool('something.other.here')
95
96
97def test_add_aspath() -> None:

Callers

nothing calls this directly

Calls 4

add_fileMethod · 0.95
get_boolMethod · 0.95
ConfigClass · 0.90
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…