2023-01-02 16:57:07 +00:00
|
|
|
#!/usr/bin/env python3
|
2023-01-27 14:13:12 +00:00
|
|
|
import click
|
2023-01-02 16:57:07 +00:00
|
|
|
|
2023-01-27 14:13:12 +00:00
|
|
|
from ui_tests import update_fixtures
|
2023-01-02 16:57:07 +00:00
|
|
|
|
|
|
|
|
2023-01-27 14:13:12 +00:00
|
|
|
@click.command()
|
|
|
|
@click.option("-r", "--remove-missing", is_flag=True, help="Remove missing tests")
|
|
|
|
def main(remove_missing: bool) -> None:
|
|
|
|
"""Update fixtures file with results from latest test run."""
|
|
|
|
changes_amount = update_fixtures(remove_missing)
|
|
|
|
print(f"Updated fixtures.json with data from {changes_amount} tests.")
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
main()
|