Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ckanext-odsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Open-Data
ckanext-odsh
Commits
8d9a6775
Commit
8d9a6775
authored
6 years ago
by
anonymous
Browse files
Options
Downloads
Patches
Plain Diff
add test for first upload step
parent
1b892656
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ckanext/odsh/tests/test_upload.py
+4
-6
4 additions, 6 deletions
ckanext/odsh/tests/test_upload.py
with
4 additions
and
6 deletions
ckanext/odsh/tests/test_upload.py
+
4
−
6
View file @
8d9a6775
...
...
@@ -75,7 +75,7 @@ class TestUpload(helpers.FunctionalTestBase):
response6
.
mustcontain
(
'
odsh_temporal_start_not_date_error_label
'
)
@odsh_test
()
def
test_upload_
license_without_attribution_tex
t
(
self
):
def
test_upload_
all_fields_se
t
(
self
):
# arrange
form
=
self
.
_get_package_new_form
()
form
[
'
title
'
]
=
'
Titel
'
...
...
@@ -88,15 +88,13 @@ class TestUpload(helpers.FunctionalTestBase):
form
[
self
.
_get_field_name
(
'
temporal_start
'
)]
=
'
2019-01-29
'
form
[
self
.
_get_field_name
(
'
temporal_end
'
)]
=
'
2019-02-02
'
form
[
'
license_id
'
]
=
'
http://dcat-ap.de/def/licenses/dl-zero-de/2.0
'
form
[
self
.
_get_field_name
(
'
licenseAttributionByText
'
)].
value
=
'
text
'
# act
print
(
form
)
form
[
self
.
_get_field_key
(
'
licenseAttributionByText
'
)
]
=
'
licenseAttributionByText
'
form
[
self
.
_get_field_name
(
'
licenseAttributionByText
'
)]
=
None
response
=
self
.
_submit_and_follow_form
(
form
)
# assert
response
.
mustcontain
(
'
odsh_spatial_uri_unknown_error_label
'
)
assert_true
(
'
resource-edit
'
in
response
.
forms
)
def
_get_field_name
(
self
,
field
):
checksum
=
odsh_create_checksum
(
field
)
...
...
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