Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Lesrooster
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Onboarding
AlekSIS-App-Lesrooster
Commits
9ed711e4
Verified
Commit
9ed711e4
authored
3 months ago
by
Jonathan Weth
Browse files
Options
Downloads
Patches
Plain Diff
Reformat
parent
62e055c7
No related branches found
No related tags found
1 merge request
!69
Update pyproject.toml
Pipeline
#194780
failed
3 months ago
Stage: prepare
Stage: test
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aleksis/apps/lesrooster/tests/test_validity_range.py
+2
-1
2 additions, 1 deletion
aleksis/apps/lesrooster/tests/test_validity_range.py
with
2 additions
and
1 deletion
aleksis/apps/lesrooster/tests/test_validity_range.py
+
2
−
1
View file @
9ed711e4
...
@@ -205,7 +205,8 @@ def test_change_published_validity_range():
...
@@ -205,7 +205,8 @@ def test_change_published_validity_range():
validity_range
.
date_end
=
validity_range
.
date_end
-
timedelta
(
days
=
4
)
validity_range
.
date_end
=
validity_range
.
date_end
-
timedelta
(
days
=
4
)
with
pytest
.
raises
(
with
pytest
.
raises
(
ValidationError
,
ValidationError
,
match
=
r
"
.*To avoid data loss, the validity range can be only shortened until the current day.*
"
,
match
=
r
"
.*To avoid data loss, the validity range
"
r
"
can be only shortened until the current day.*
"
,
):
):
validity_range
.
full_clean
()
validity_range
.
full_clean
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment