Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
de31fefb
Commit
de31fefb
authored
7 years ago
by
Michael Youngstrom
Browse files
Options
Downloads
Patches
Plain Diff
Remove test_import_timestamp
parent
9f0a79a5
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/test/acceptance/tests/studio/test_import_export.py
+0
-39
0 additions, 39 deletions
common/test/acceptance/tests/studio/test_import_export.py
with
0 additions
and
39 deletions
common/test/acceptance/tests/studio/test_import_export.py
+
0
−
39
View file @
de31fefb
...
...
@@ -172,45 +172,6 @@ class ImportTestMixin(object):
self
.
import_page
.
upload_tarball
(
self
.
tarball_name
)
self
.
import_page
.
wait_for_upload
()
def
test_import_timestamp
(
self
):
"""
Scenario: I perform a course / library import
On import success, the page displays a UTC timestamp previously not visible
And if I refresh the page, the timestamp is still displayed
"""
self
.
assertFalse
(
self
.
import_page
.
is_timestamp_visible
())
# Get the time when the import has started.
# import_page timestamp is in (MM/DD/YYYY at HH:mm) so replacing (second, microsecond) to
# keep the comparison consistent
upload_start_time
=
datetime
.
utcnow
().
replace
(
microsecond
=
0
,
second
=
0
)
self
.
import_page
.
upload_tarball
(
self
.
tarball_name
)
self
.
import_page
.
wait_for_upload
()
# Get the time when the import has finished.
# import_page timestamp is in (MM/DD/YYYY at HH:mm) so replacing (second, microsecond) to
# keep the comparison consistent
upload_finish_time
=
datetime
.
utcnow
().
replace
(
microsecond
=
0
,
second
=
0
)
import_timestamp
=
self
.
import_page
.
parsed_timestamp
self
.
import_page
.
wait_for_timestamp_visible
()
# Verify that 'import_timestamp' is between start and finish upload time
self
.
assertLessEqual
(
upload_start_time
,
import_timestamp
,
"
Course import timestamp should be upload_start_time <= import_timestamp <= upload_end_time
"
)
self
.
assertGreaterEqual
(
upload_finish_time
,
import_timestamp
,
"
Course import timestamp should be upload_start_time <= import_timestamp <= upload_end_time
"
)
self
.
import_page
.
visit
()
self
.
import_page
.
wait_for_tasks
(
completed
=
True
)
self
.
import_page
.
wait_for_timestamp_visible
()
def
test_landing_url
(
self
):
"""
Scenario: When uploading a library or course, a link appears for me to view the changes.
...
...
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