Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-loader-core
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
Model registry
Operate
Environments
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Platform
Development
swh-loader-core
Commits
d6cbf411
Verified
Commit
d6cbf411
authored
3 years ago
by
Antoine R. Dumont
Browse files
Options
Downloads
Patches
Plain Diff
test_opam: Drop unnecessary instructions
parent
8aca257a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
swh/loader/package/opam/tests/test_opam.py
+0
-16
0 additions, 16 deletions
swh/loader/package/opam/tests/test_opam.py
with
0 additions
and
16 deletions
swh/loader/package/opam/tests/test_opam.py
+
0
−
16
View file @
d6cbf411
...
...
@@ -4,8 +4,6 @@
# See top-level LICENSE file for more information
from
shutil
import
rmtree
from
swh.loader.package.opam.loader
import
OpamLoader
,
OpamPackageInfo
from
swh.loader.tests
import
assert_last_visit_matches
,
check_snapshot
,
get_stats
from
swh.model.hashutil
import
hash_to_bytes
...
...
@@ -41,13 +39,8 @@ def test_opam_loader_no_opam_repository_fails(swh_storage, tmpdir, datadir):
def
test_opam_loader_one_version
(
tmpdir
,
requests_mock_datadir
,
datadir
,
swh_storage
):
opam_url
=
f
"
file://
{
datadir
}
/fake_opam_repo
"
opam_root
=
tmpdir
# the directory should NOT exist, we just need an unique name, so we delete it
rmtree
(
tmpdir
)
opam_instance
=
"
loadertest
"
opam_package
=
"
agrid
"
url
=
f
"
opam+
{
opam_url
}
/packages/
{
opam_package
}
"
...
...
@@ -103,13 +96,8 @@ def test_opam_loader_one_version(tmpdir, requests_mock_datadir, datadir, swh_sto
def
test_opam_loader_many_version
(
tmpdir
,
requests_mock_datadir
,
datadir
,
swh_storage
):
opam_url
=
f
"
file://
{
datadir
}
/fake_opam_repo
"
opam_root
=
tmpdir
# the directory should NOT exist, we just need an unique name, so we delete it
rmtree
(
tmpdir
)
opam_instance
=
"
loadertest
"
opam_package
=
"
directories
"
url
=
f
"
opam+
{
opam_url
}
/packages/
{
opam_package
}
"
...
...
@@ -163,11 +151,7 @@ def test_opam_loader_many_version(tmpdir, requests_mock_datadir, datadir, swh_st
def
test_opam_revision
(
tmpdir
,
requests_mock_datadir
,
swh_storage
,
datadir
):
opam_url
=
f
"
file://
{
datadir
}
/fake_opam_repo
"
opam_root
=
tmpdir
# the directory should NOT exist, we just need an unique name, so we delete it
rmtree
(
tmpdir
)
opam_instance
=
"
loadertest
"
opam_package
=
"
ocb
"
...
...
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