You've already forked sentry-native
mirror of
https://github.com/encounter/sentry-native.git
synced 2026-03-30 11:37:49 -07:00
0c5c158c1c
Also add some tests and fix winhttp proxy validation.
20 lines
615 B
Python
20 lines
615 B
Python
import os
|
|
import pytest
|
|
from . import run
|
|
from .conditions import has_http
|
|
|
|
|
|
def test_unit(cmake, unittest):
|
|
cwd = cmake(
|
|
["sentry_test_unit"], {"SENTRY_BACKEND": "none", "SENTRY_TRANSPORT": "none"}
|
|
)
|
|
env = dict(os.environ)
|
|
run(cwd, "sentry_test_unit", ["--no-summary", unittest], check=True, env=env)
|
|
|
|
|
|
@pytest.mark.skipif(not has_http, reason="tests need http transport")
|
|
def test_unit_transport(cmake, unittest):
|
|
cwd = cmake(["sentry_test_unit"], {"SENTRY_BACKEND": "none"})
|
|
env = dict(os.environ)
|
|
run(cwd, "sentry_test_unit", ["--no-summary", unittest], check=True, env=env)
|