MCPcopy Create free account

hub / github.com/CorralPeltzer/newTrackon / functions

Functions657 in github.com/CorralPeltzer/newTrackon

Functioninsert_new_tracker
(tracker: Tracker)
newTrackon/db.py:157
Functioninsert_sample_tracker
Insert sample tracker into the test database.
tests/conftest.py:143
Functioninserted_sample_tracker
Insert sample tracker into the test database.
tests/unit/test_db.py:135
Functionlist_stable
()
newTrackon/views.py:116
Functionmain
()
newTrackon/trackerlist_project.py:9
Functionmock_db_connection
Patch sqlite3.connect to use in-memory database.
tests/conftest.py:82
Methodmock_ip_api
(ip: str)
tests/unit/test_tracker.py:817
Functionmock_ip_resolution
Mock socket.getaddrinfo for IP resolution.
tests/conftest.py:267
Functionmock_network
Disable all network calls by default.
tests/conftest.py:171
Methodmock_socket
Create a mock socket for UDP testing.
tests/unit/test_scraper.py:375
Methodmock_successful_response
Create a mock successful HTTP response.
tests/unit/test_scraper.py:263
Functionmock_tracker_response
Return a mock successful tracker response.
tests/conftest.py:238
Functionmock_udp_response
Return mock UDP tracker response data.
tests/conftest.py:249
Functionnew_trackers
()
newTrackon/views.py:70
Functionnew_trackers_api
()
newTrackon/views.py:86
Functionopenapi_def
()
newTrackon/views.py:214
Functionpatched_connect
(database: str, *args: Any, **kwargs: Any)
tests/conftest.py:86
Functionpatched_connect
(database: str, *args: Any, **kwargs: Any)
tests/integration/test_tracker_workflow.py:52
Functionpatched_connect
(database: str, *args: Any, **kwargs: Any)
tests/unit/test_db.py:81
Functionpatched_db
Patch sqlite3.connect to use the test database with wrapper.
tests/unit/test_db.py:77
Methodpatched_exists
(path: str)
tests/unit/test_persistence.py:299
Methodpatched_open
(path: str, *args: Any, **kwargs: Any)
tests/unit/test_persistence.py:313
Methodpopulated_db
Populate DB with various trackers for API tests.
tests/unit/test_db.py:664
Functionprocess_submitted_queue
()
newTrackon/ingest.py:122
Functionraw
()
newTrackon/views.py:126
Methodrecv_side_effect
(size: int)
tests/unit/test_scraper.py:406
Functionreject_announce_requests
()
newTrackon/views.py:219
Functionreset_globals
Reset global state between tests.
tests/conftest.py:190
Methodrow_factory
(self)
tests/unit/test_db.py:39
Functionsample_tracker
Create a sample Tracker instance for testing.
tests/conftest.py:118
Functionsample_tracker_data
Return sample tracker data as a dictionary.
tests/conftest.py:96
Functionsample_tracker_dict
Return sample tracker data as a dictionary.
tests/unit/test_db.py:91
Functionsample_tracker_obj
Create a sample Tracker instance for testing.
tests/unit/test_db.py:113
Functionshared_memory_db
Provide a shared in-memory SQLite database that persists across connections. Uses a URI-based connection with shared cache to allow multiple conn
tests/integration/test_tracker_workflow.py:20
Functionsubmission_worker
()
newTrackon/ingest.py:133
Functionsubmitted
()
newTrackon/views.py:100
Methodtest_accept_tracker_with_exactly_maximum_interval
Interval of exactly 10800 should be accepted.
tests/integration/test_tracker_workflow.py:802
Methodtest_accept_tracker_with_exactly_minimum_interval
Interval of exactly 300 should be accepted (boundary condition). Per code logic: "300 > tracker_candidate.interval" means 300 is NOT rejected
tests/integration/test_tracker_workflow.py:755
Methodtest_accept_tracker_with_valid_interval
Verify tracker with interval between 300 and 10800 is accepted.
tests/integration/test_tracker_workflow.py:709
Methodtest_accepts_tracker_without_ips
Test that trackers without IPs can still be added.
tests/unit/test_trackon.py:286
Methodtest_accepts_valid_interval_maximum
Test that trackers with interval = 10800 seconds are accepted.
tests/unit/test_trackon.py:396
Methodtest_accepts_valid_interval_minimum
Test that trackers with interval = 300 seconds are accepted.
tests/unit/test_trackon.py:375
Methodtest_accepts_valid_new_tracker
Test that valid new trackers are added to the queue.
tests/unit/test_trackon.py:234
Methodtest_accepts_when_no_ips_tracked
Test that trackers are accepted when no IPs are being tracked yet.
tests/unit/test_trackon.py:301
Methodtest_add_tracker_to_submitted_queue
Call add_one_tracker_to_submitted_queue with valid URL, verify tracker added to submitted queue.
tests/integration/test_tracker_workflow.py:350
Methodtest_adds_cors_header
Should add Access-Control-Allow-Origin header with wildcard.
tests/unit/test_utils.py:24
Methodtest_allow_tracker_with_unique_ip
Test that tracker with unique IP is allowed.
tests/integration/test_tracker_workflow.py:563
Methodtest_always_appends_announce_path
Should always append /announce path.
tests/unit/test_utils.py:776
Methodtest_announce_http_connection_error
Test HTTP announce connection error.
tests/unit/test_scraper.py:295
Methodtest_announce_http_empty_response
Test HTTP announce with empty response.
tests/unit/test_scraper.py:313
Methodtest_announce_http_invalid_bencoded_response
Test HTTP announce with invalid bencoded response.
tests/unit/test_scraper.py:323
Methodtest_announce_http_invalid_status_code
Test HTTP announce with non-200 status code.
tests/unit/test_scraper.py:303
Methodtest_announce_http_missing_peers_field
Test HTTP announce with missing peers field.
tests/unit/test_scraper.py:344
Methodtest_announce_http_request_exception
Test HTTP announce with generic request exception.
tests/unit/test_scraper.py:363
Methodtest_announce_http_response_too_large
Test HTTP announce with response exceeding size limit.
tests/unit/test_scraper.py:355
Methodtest_announce_http_success
Test successful HTTP announce.
tests/unit/test_scraper.py:274
Methodtest_announce_http_timeout
Test HTTP announce timeout.
tests/unit/test_scraper.py:287
Methodtest_announce_http_tracker_failure_reason
Test HTTP announce with tracker failure reason.
tests/unit/test_scraper.py:333
Methodtest_announce_http_with_peers6_field
Test HTTP announce with peers6 field instead of peers.
tests/unit/test_scraper.py:1143
Methodtest_announce_udp_connect_failure
Test UDP announce when socket connect fails.
tests/unit/test_scraper.py:483
Methodtest_announce_udp_connection_refused
Test UDP announce with connection refused.
tests/unit/test_scraper.py:446
Methodtest_announce_udp_dns_resolution_error
Test UDP announce with DNS resolution error.
tests/unit/test_scraper.py:437
Methodtest_announce_udp_socket_creation_failure
Test UDP announce when socket creation fails.
tests/unit/test_scraper.py:472
Methodtest_announce_udp_success
Test successful UDP announce.
tests/unit/test_scraper.py:383
Methodtest_announce_udp_timeout
Test UDP announce timeout.
tests/unit/test_scraper.py:459
Methodtest_api_add_cors_header
POST /api/add should include CORS header.
tests/integration/test_api_endpoints.py:1080
Methodtest_api_content_type
API endpoints should return plain text.
tests/integration/test_api_endpoints.py:1075
Methodtest_api_cors_header
API endpoints should include CORS header.
tests/integration/test_api_endpoints.py:1070
Methodtest_api_percentage_boundary_100
GET /api/100 should be valid.
tests/integration/test_api_endpoints.py:1098
Methodtest_api_percentage_boundary_zero
GET /api/0 should be valid and return all trackers.
tests/integration/test_api_endpoints.py:1093
Methodtest_attempt_all_protocols_all_fail
Test when all protocols fail.
tests/unit/test_scraper.py:884
Methodtest_attempt_all_protocols_no_port_skips_udp
Test that UDP is skipped when no port is specified.
tests/unit/test_scraper.py:868
Methodtest_attempt_all_protocols_udp_fails_http_success
Test when UDP fails but HTTP succeeds.
tests/unit/test_scraper.py:851
Methodtest_attempt_all_protocols_udp_success
Test when UDP succeeds.
tests/unit/test_scraper.py:834
Methodtest_attempt_from_txt_prefs_all_fail
Test when all preferences fail.
tests/unit/test_scraper.py:940
Methodtest_attempt_from_txt_prefs_tcp_success
Test when TCP preference succeeds.
tests/unit/test_scraper.py:922
Methodtest_attempt_from_txt_prefs_udp_success
Test when UDP preference succeeds.
tests/unit/test_scraper.py:904
Methodtest_attempt_https_http_both_fail
Test when both HTTPS and HTTP fail.
tests/unit/test_scraper.py:814
Methodtest_attempt_https_http_https_fails_http_succeeds
Test when HTTPS fails but HTTP succeeds.
tests/unit/test_scraper.py:794
Methodtest_attempt_https_http_https_success
Test when HTTPS succeeds.
tests/unit/test_scraper.py:776
Methodtest_attempt_httpx_failure
Test failed HTTP attempt.
tests/unit/test_scraper.py:759
Methodtest_attempt_httpx_http_success
Test successful HTTP attempt.
tests/unit/test_scraper.py:744
Methodtest_attempt_httpx_https_success
Test successful HTTPS attempt.
tests/unit/test_scraper.py:729
Methodtest_attempt_submitted_bep34_denies
Test submitted tracker with BEP34 that denies connection.
tests/unit/test_scraper.py:1005
Methodtest_attempt_submitted_dns_failure
Test submitted tracker with DNS resolution failure.
tests/unit/test_scraper.py:1021
Methodtest_attempt_submitted_no_bep34
Test submitted tracker without BEP34.
tests/unit/test_scraper.py:962
Methodtest_attempt_submitted_with_bep34
Test submitted tracker with valid BEP34.
tests/unit/test_scraper.py:984
Methodtest_attempt_udp_failure
Test failed UDP attempt.
tests/unit/test_scraper.py:714
Methodtest_attempt_udp_success
Test successful UDP attempt.
tests/unit/test_scraper.py:698
Methodtest_basic_tcp_record
Should parse basic TCP record.
tests/unit/test_utils.py:616
Methodtest_basic_udp_record
Should parse basic UDP record.
tests/unit/test_utils.py:608
Methodtest_bdecode_converts_bytes_keys_to_strings
bdecode() should convert bytes keys to string keys.
tests/unit/test_bdecode.py:403
Methodtest_bdecode_converts_bytes_values_to_strings
bdecode() should convert bytes values to strings.
tests/unit/test_bdecode.py:412
Methodtest_bdecode_empty_peers6_list
bdecode() handles empty peers6 binary data.
tests/unit/test_bdecode.py:672
Methodtest_bdecode_empty_peers_list
bdecode() handles empty peers binary data.
tests/unit/test_bdecode.py:666
Methodtest_bdecode_integer_raises_runtime_error
bdecode() should raise RuntimeError if root is an integer.
tests/unit/test_bdecode.py:424
Methodtest_bdecode_invalid_external_ip_size_raises_error
bdecode() should raise RuntimeError for invalid external IP size.
tests/unit/test_bdecode.py:482
Methodtest_bdecode_non_dict_raises_runtime_error
bdecode() should raise RuntimeError if root is not a dict.
tests/unit/test_bdecode.py:418
Methodtest_bdecode_preserves_nested_structure_types
Verify bdecode preserves nested list/dict structure.
tests/unit/test_bdecode.py:687
Methodtest_bdecode_processes_external_ip_v4
bdecode() should decode external ip field for IPv4.
tests/unit/test_bdecode.py:464
← previousnext →101–200 of 657, ranked by callers