Buckets:

download
raw
631 Bytes
import pytest
from grid.services.contribution_tracker import ContributionTracker
class TestContributionTracker:
@pytest.fixture
def tracker(self):
return ContributionTracker()
def test_start_and_stop_session(self, tracker):
session_id = "test_session"
start_result = tracker.start_session(session_id)
assert start_result["status"] == "started"
assert tracker.sessions[session_id]["status"] == "active"
stop_result = tracker.stop_session(session_id)
assert stop_result["status"] == "stopped"
assert tracker.sessions[session_id]["status"] == "stopped"

Xet Storage Details

Size:
631 Bytes
·
Xet hash:
47546fc1c077ea0ecb04487689521e9ab990dd9bf1c8c49d59554b60e3c11659

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.