Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Anonymous Ticket Portal Anonymous Ticket Portal
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 27
    • Issues 27
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • The Tor Project
  • TPA
  • Anonymous Ticket PortalAnonymous Ticket Portal
  • Merge requests
  • !42

Added Tests

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged MariaV requested to merge finish_tests into master Jan 13, 2021
  • Overview 0
  • Commits 1
  • Changes 2

Added tests for forms, get vs post requests, etc. At current, per python coverage, total testing coverage is 94 percent, although this includes a number of files that do not require python coverage (e.g. manage.py.)

All lines of admin.py, forms.py, models.py, and views.py are tested, with the exception of those lines that would write a ticket or note to gitlab in a gitlab call or that require a gitlab exception (that should be impossible given the way projects are saved; e.g., projects overwrite their info from gitlab on save and therefore should not throw a gitlab get exception later.)

Updated pretty date_time filter to display correct month (whoops) and wrote tests for each month to ensure that all months display correctly.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: finish_tests