Skip to content

Commit faf8502

Browse files
committed
Apply suggestions from code review
1 parent 75ee482 commit faf8502

File tree

5 files changed

+5
-8
lines changed

5 files changed

+5
-8
lines changed

tests/agent_features/test_logs_in_context.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,6 @@ def test_newrelic_logger_error_inside_transaction_with_stack_trace(log_buffer_wi
241241
assert filename.endswith("/test_logs_in_context.py")
242242
assert isinstance(line_number, int)
243243
assert isinstance(stack_trace, str)
244-
assert stack_trace
245244
assert stack_trace == expected_stack_trace
246245

247246
expected = {
@@ -330,7 +329,6 @@ def test_newrelic_logger_error_outside_transaction_with_stack_trace(log_buffer_w
330329
assert filename.endswith("/test_logs_in_context.py")
331330
assert isinstance(line_number, int)
332331
assert isinstance(stack_trace, str)
333-
assert stack_trace
334332
assert stack_trace == expected_stack_trace
335333

336334
expected = {

tests/cross_agent/fixtures/rum_loader_insertion_location/no_end_header.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
-->
1717

1818
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
19-
<head>EXPECTED_RUM_LOADER_LOCATION<body>
20-
Cribbed from the Java agent
21-
</body>
19+
<head>EXPECTED_RUM_LOADER_LOCATION
20+
<body>
21+
Cribbed from the Java agent
22+
</body>
23+
<!-- Missing end header tag -->
2224
</html>

tests/datastore_psycopg/test_obfuscation.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ def any_length_explain_plan(node):
8787

8888
sql_connections = SQLConnections()
8989
explain_plan = node.explain_plan(sql_connections)
90-
assert explain_plan
9190
assert len(explain_plan) > 0
9291

9392

tests/datastore_psycopg2/test_obfuscation.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ def any_length_explain_plan(node):
9595

9696
sql_connections = SQLConnections()
9797
explain_plan = node.explain_plan(sql_connections)
98-
assert explain_plan
9998
assert len(explain_plan) > 0
10099

101100

tests/framework_grpc/test_clients.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ def _test_future_timeout_error():
179179
request = create_request(streaming_request, count=1, timesout=True)
180180

181181
reply = get_result(service_method_method, request, timeout=0.01)
182-
assert reply
183182
assert reply.code() == grpc.StatusCode.DEADLINE_EXCEEDED
184183

185184
_test_future_timeout_error()

0 commit comments

Comments
 (0)