Skip to content

Fix torsf stats - #1261

Open
aagbsn wants to merge 3 commits into
masterfrom
fix_torsf_stats
Open

aagbsn wants to merge 3 commits into
masterfrom
fix_torsf_stats

Conversation

@aagbsn

@aagbsn aagbsn commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

in the legacy api probe_cc was optional, but the ported method did not allow a None value. This adds a test to demonstrate the failure and the fix is to give probe_cc a default value. measurement_count was also missing in the response.

@aagbsn
aagbsn requested a review from LDiazN September 29, 2026 08:11
def test_torsf_stats_group_by_probe_cc(client, torsf_fastpath_rows):
params = {"since": "2019-02-28", "until": "2019-03-03"}
response = client.get("/api/v1/torsf_stats", params=params)
assert response.status_code == 200, response.text

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use the getj function for this test:

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants