frohzinn's picture
download
raw
608 Bytes
import pytest
from utils import *
# ref: https://stackoverflow.com/questions/22627659/run-code-before-and-after-each-test-in-py-test
@pytest.fixture(autouse=True)
def stop_server_after_each_test():
# do nothing before each test
yield
# stop all servers after each test
instances = set(
server_instances
) # copy the set to prevent 'Set changed size during iteration'
for server in instances:
server.stop()
@pytest.fixture(scope="module", autouse=True)
def do_something():
# this will be run once per test session, before any tests
ServerPreset.load_all()

Xet Storage Details

Size:
608 Bytes
·
Xet hash:
d55c6d390e6b9c18d756a6b0b6ac24e8c264e69d6f7d5817a7103c9321718070

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