Skip to content

Simplify URL construction in Selenium tests #2488

@jooooosef

Description

@jooooosef

In normal tests, we can issue requests with self.app.get(reverse(...)). However, in live server tests it looks like this:

self.selenium.get(self.live_server_url + reverse("staff:semester_view", args=[semester.pk]))

We should come up with a way to not always write self.live_server_url + .

Originally posted by @niklasmohrin in #2474 (comment)

Metadata

Metadata

Labels

[C] Tests and CINew or better testing and CI[P] Nice to haveLowest priority. Some people might use this feature but it won't have a big impact.[T] RefactoringExisting parts should become faster, more readable, or in any other way better.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions