Logo
Explore Help
Register Sign In
External/signoz
1
0
Fork 0
You've already forked signoz
mirror of https://github.com/SigNoz/signoz.git synced 2025-12-17 15:36:48 +00:00
Code Issues Packages Projects Releases Wiki Activity
signoz/tests/integration/fixtures/network.py

19 lines
356 B
Python
Raw Normal View History

test(integration): set the base for integration tests (#7606) * test(integration): set the base for integration tests * ci: add ci pipeline for integration test * ci: add ci pipeline for integration test * ci: add ci pipeline for integration test * ci: add ci pipeline for integration test * ci: add ci pipeline for integration test * ci: add ci pipeline for integration test * ci: add ci pipeline for integration test * ci: add ci pipeline for integration test * ci: add ci pipeline for integration test * ci: add ci pipeline for integration test * ci: add ci pipeline for integration test * ci: add ci pipeline for integration test * ci: add ci pipeline for integration test * ci: add ci pipeline for integration test * ci: add ci pipeline for integration test * ci: add ci pipeline for integration test
2025-04-16 18:54:05 +05:30
import pytest
from testcontainers.core.container import Network
@pytest.fixture(name="network", scope="package")
def network(request: pytest.FixtureRequest) -> Network:
"""
Package-Scoped fixture for creating a network
"""
nw = Network()
nw.create()
def stop():
nw.remove()
request.addfinalizer(stop)
return nw
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.6 Page: 895ms Template: 12ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API