website icon indicating copy to clipboard operation
website copied to clipboard

add script to check the expected result count against the actual result

Open Abbe98 opened this issue 1 year ago • 5 comments

Usage example: Screenshot from 2024-07-19 15-37-05

Abbe98 avatar Jul 19 '24 13:07 Abbe98

In the best of worlds we would have something like this on Wiki, similar to auto updating Listeria lists but in the meanwhile...

Abbe98 avatar Jul 19 '24 13:07 Abbe98

@Abbe98 FYI Scotland is missing.

interesting, all failures are "within the margin", only in Malta many items are missing.

RVA2869 avatar Jul 19 '24 14:07 RVA2869

Nice catch @RVA2869!

Abbe98 avatar Jul 19 '24 14:07 Abbe98

I'm trying to run it, but get this:

Traceback (most recent call last):
  File "/scripts/check-expected-results-count.py", line 56, in <module>
    verify_result_counts(folder_path, endpoint)
  File "/scripts/check-expected-results-count.py", line 33, in verify_result_counts
    with open(file_path, "r") as file:
FileNotFoundError: [Errno 2] No such file or directory: 'queries/generators/queries/generators/united-kingdom.rq'

Ainali avatar Sep 06 '24 13:09 Ainali

only in Malta many items are missing

Looks like one user decided that the local councils should just be towns instead.

Ainali avatar Sep 08 '24 12:09 Ainali

Must be squash merged.

Abbe98 avatar Oct 22 '24 14:10 Abbe98

@Abbe98 I missed the squash merge. Is that a problem?

Ainali avatar Oct 27 '24 14:10 Ainali