MCPcopy Create free account
hub / github.com/Exiv2/exiv2 / removeTest

Function removeTest

tests/bash_tests/utils.py:634–651  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

632
633
634def removeTest(filename):
635 tmp = 'temp'
636 test_file = filename + '.irtst'
637 src_file = os.path.join(Config.data_dir, filename)
638 good_file = os.path.join(Config.data_dir, filename + '.irgd')
639 copyTestFile(filename, tmp)
640 stdin = """
641r Iptc.Application2.Byline
642r Iptc.Application2.Caption
643r Iptc.Application2.Keywords
644r Iptc.Application2.Keywords
645r Iptc.Application2.Keywords
646r Iptc.Application2.CountryName
647""".lstrip('\n').encode()
648 Executer('iptctest {tmp}', vars(), stdin=stdin)
649 e = Executer('iptcprint {tmp}', vars(), assert_returncode=None, decode_output=False)
650 save(e.stdout + b'\n', test_file)
651 return diffCheck(good_file, test_file, in_bytes=True)
652
653
654def addModTest(filename):

Callers

nothing calls this directly

Calls 5

copyTestFileFunction · 0.85
ExecuterClass · 0.85
saveFunction · 0.85
diffCheckFunction · 0.85
encodeMethod · 0.45

Tested by

no test coverage detected