Skip to content

add tests for the changes

59633f9
Select commit
Loading
Failed to load commit list.
Closed

feat: Context management using with keyword for a more Pythonic way #1015

add tests for the changes
59633f9
Select commit
Loading
Failed to load commit list.
Codecov / codecov/patch succeeded May 29, 2025 in 1s

66.03% of diff hit (target 42.42%)

View this Pull Request on Codecov

66.03% of diff hit (target 42.42%)

Annotations

Check warning on line 82 in agentops/context_manager.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

agentops/context_manager.py#L82

Added line #L82 was not covered by tests

Check warning on line 105 in agentops/context_manager.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

agentops/context_manager.py#L105

Added line #L105 was not covered by tests

Check warning on line 121 in agentops/context_manager.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

agentops/context_manager.py#L120-L121

Added lines #L120 - L121 were not covered by tests

Check warning on line 176 in agentops/context_manager.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

agentops/context_manager.py#L174-L176

Added lines #L174 - L176 were not covered by tests

Check warning on line 178 in agentops/context_manager.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

agentops/context_manager.py#L178

Added line #L178 was not covered by tests

Check warning on line 196 in agentops/context_manager.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

agentops/context_manager.py#L196

Added line #L196 was not covered by tests

Check warning on line 208 in agentops/context_manager.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

agentops/context_manager.py#L208

Added line #L208 was not covered by tests

Check warning on line 213 in agentops/context_manager.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

agentops/context_manager.py#L213

Added line #L213 was not covered by tests

Check warning on line 227 in agentops/context_manager.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

agentops/context_manager.py#L226-L227

Added lines #L226 - L227 were not covered by tests

Check warning on line 233 in agentops/context_manager.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

agentops/context_manager.py#L233

Added line #L233 was not covered by tests

Check warning on line 238 in agentops/context_manager.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

agentops/context_manager.py#L237-L238

Added lines #L237 - L238 were not covered by tests

Check warning on line 242 in agentops/context_manager.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

agentops/context_manager.py#L242

Added line #L242 was not covered by tests

Check warning on line 247 in agentops/context_manager.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

agentops/context_manager.py#L246-L247

Added lines #L246 - L247 were not covered by tests

Check warning on line 257 in agentops/context_manager.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

agentops/context_manager.py#L251-L257

Added lines #L251 - L257 were not covered by tests

Check warning on line 298 in agentops/context_manager.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

agentops/context_manager.py#L295-L298

Added lines #L295 - L298 were not covered by tests

Check warning on line 305 in agentops/context_manager.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

agentops/context_manager.py#L302-L305

Added lines #L302 - L305 were not covered by tests

Check warning on line 312 in agentops/context_manager.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

agentops/context_manager.py#L309-L312

Added lines #L309 - L312 were not covered by tests

Check warning on line 319 in agentops/context_manager.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

agentops/context_manager.py#L316-L319

Added lines #L316 - L319 were not covered by tests

Check warning on line 325 in agentops/context_manager.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

agentops/context_manager.py#L323-L325

Added lines #L323 - L325 were not covered by tests

Check warning on line 327 in agentops/context_manager.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

agentops/context_manager.py#L327

Added line #L327 was not covered by tests

Check warning on line 333 in agentops/context_manager.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

agentops/context_manager.py#L331-L333

Added lines #L331 - L333 were not covered by tests

Check warning on line 335 in agentops/context_manager.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

agentops/context_manager.py#L335

Added line #L335 was not covered by tests

Check warning on line 342 in agentops/context_manager.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

agentops/context_manager.py#L339-L342

Added lines #L339 - L342 were not covered by tests