Add a message about how to update recordings
@@ -57,6 +57,7 @@ def pytest_configure(config):
"markers", "github_api: mark test to run only with GitHub API credentials"
)
+
def pytest_terminal_summary(terminalreporter, exitstatus):
"""This function has meaning to pytest, for more information, see:
https://docs.pytest.org/en/stable/reference.html#pytest.hookspec.pytest_terminal_summary
@@ -72,6 +73,9 @@ def pytest_terminal_summary(terminalreporter, exitstatus):
for host, records in hosts.items():
fname = 'http-record.{}.json'.format(host)
print("Recorded http responses for {} in {}".format(host, fname))
+ print("To update the recordings used by the tests you will have"
+ " to move or merge the newly created recordings with existing"
+ f" recordings in {here}.")
with open(fname, 'w') as f:
json.dump(records, f, sort_keys=True, indent=1)
