Skip to content

Test improvements - #175

Merged
lordjabez merged 31 commits into
tryolabs:masterfrom
bmos:test-improvements
Jan 11, 2026
Merged

lordjabez merged 31 commits into
tryolabs:masterfrom
bmos:test-improvements

Conversation

@bmos

@bmos bmos commented Dec 2, 2025 •

Copy link
Copy Markdown
Contributor

Increase coverage from 67% to 80+% and fix issues that were causing constant and intermittent test failures.

Updated Tests

  • Use local cookie data instead of relying on external server for cookie testing
  • Use local html instead of relying on external server for tests
  • Quit browser after tests finish
  • Re-use test fixture instance across tests for greatly reduced test runtime
  • Less redundant code in session test fixture
  • Optimize session fixture's driver instance for CI workflows (disabling unused features)
  • Add pre-test validation of session fixture to avoid discarded window context errors that intermittently occur.

New Tests

  • Add cookie test for transferring driver cookies to session
  • Add tests for creating session object with various options (prefs, options, experimental options, extensions, etc)
  • Add test for moving cookies with domain filter
  • Add tests for all ensure_element* methods
  • Add tests for ensure_click* function
  • Add tests for ensure_add_cookie method

Module Code Changes

@bmos bmos mentioned this pull request Dec 2, 2025
@github-actions

github-actions Bot commented Dec 2, 2025 •

Copy link
Copy Markdown

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  requestium
  requestium_mixin.py
  requestium_session.py
Project Total  

This report was generated by python-coverage-comment-action

@bmos bmos mentioned this pull request Dec 2, 2025
@bmos

bmos commented Jan 10, 2026

Copy link
Copy Markdown
Contributor Author

@lordjabez when you get a chance please take a look at this PR. It will resolve the ongoing testing issues.

@lordjabez
lordjabez merged commit 9c5e8fd into tryolabs:master Jan 11, 2026
26 checks passed
@bmos
bmos deleted the test-improvements branch January 13, 2026 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants