Skip to content

Commit

Permalink
Use valid api key in session tests
Browse files Browse the repository at this point in the history
  • Loading branch information
imjoehaines committed Dec 5, 2023
1 parent 6e52120 commit 08e5a33
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/test_sessiontracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def test_session_tracker_adds_session_object_to_queue(self):

def test_session_tracker_send_sessions_sends_sessions(self):
client = Client(
api_key='a05afff2bd2ffaf0ab0f52715bbdcffd',
auto_capture_sessions=True,
session_endpoint=self.server.url,
asynchronous=False
Expand All @@ -41,6 +42,7 @@ def test_session_tracker_send_sessions_sends_sessions(self):

def test_session_tracker_sets_details_from_config(self):
client = Client(
api_key='a05afff2bd2ffaf0ab0f52715bbdcffd',
auto_capture_sessions=True,
session_endpoint=self.server.url,
asynchronous=False
Expand Down Expand Up @@ -71,7 +73,7 @@ def test_session_tracker_sets_details_from_config(self):

def test_session_middleware_attaches_session_to_event(self):
client = Client(
auto_capture_sessions=True,
api_key='a05afff2bd2ffaf0ab0f52715bbdcffd',
session_endpoint=self.server.url + '/ignore',
endpoint=self.server.url,
asynchronous=False
Expand All @@ -95,7 +97,7 @@ def test_session_middleware_attaches_session_to_event(self):

def test_session_tracker_does_not_send_when_nothing_to_send(self):
client = Client(
api_key='fff',
api_key='a05afff2bd2ffaf0ab0f52715bbdcffd',
session_endpoint=self.server.url,
asynchronous=False,
release_stage="dev",
Expand All @@ -106,7 +108,7 @@ def test_session_tracker_does_not_send_when_nothing_to_send(self):

def test_session_tracker_does_not_send_when_disabled(self):
client = Client(
api_key='fff',
api_key='a05afff2bd2ffaf0ab0f52715bbdcffd',
session_endpoint=self.server.url,
asynchronous=False,
release_stage="dev",
Expand Down

0 comments on commit 08e5a33

Please sign in to comment.