Skip to content

Commit 5105237

Browse files
committed
disabling sentry on testpy classes
1 parent f0fa329 commit 5105237

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

example.db

124 KB
Binary file not shown.

netpyne_ui/__init__.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,7 @@
33
import sentry_sdk
44

55
sentry_sdk.init(
6-
"https://[email protected]/6",
7-
8-
# Set traces_sample_rate to 1.0 to capture 100%
9-
# of transactions for performance monitoring.
10-
# We recommend adjusting this value in production.
11-
traces_sample_rate=1.0,
6+
"https://[email protected]/6"
127
)
138

149
RouteManager.add_controller(api.NetPyNEController)

tests/backend/netpyne_model_interpreter_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
netpyne.__gui__ = False
1616
sys.path.insert(0, NETPYNE_WORKDIR_PATH)
1717

18+
import sentry_sdk
19+
sentry_sdk.init()
20+
1821

1922
class TestNetPyNEModelInterpreter(unittest.TestCase):
2023

tests/backend/netypne_model_importer_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
netpyne.__gui__ = False
1818
sys.path.insert(0, NETPYNE_WORKDIR_PATH)
1919

20+
import sentry_sdk
21+
sentry_sdk.init()
22+
2023
class TestNetPyNEModelInterpreter(unittest.TestCase):
2124

2225
@classmethod

tests/backend/utils_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@
44
from netpyne_ui import mod_utils
55
HERE = os.path.dirname(os.path.abspath(__file__))
66

7+
import sentry_sdk
8+
sentry_sdk.init()
9+
710
def test_compile_mod():
811
mod_utils.compileModMechFiles(True, NETPYNE_WORKDIR_PATH)

0 commit comments

Comments
 (0)