-
-
Notifications
You must be signed in to change notification settings - Fork 800
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed an issue when can not remove update or remove external dev-plat…
…form using PlatformIO Home // Resolve #3663
- Loading branch information
1 parent
de2b5ea
commit 6987d6c
Showing
3 changed files
with
16 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,12 +90,13 @@ def test_spec_local_urls(tmpdir_factory): | |
assert PackageSpec("file:///tmp/some-lib/") == PackageSpec( | ||
url="file:///tmp/some-lib/", name="some-lib" | ||
) | ||
assert PackageSpec("file:///tmp/foo.tar.gz@~2.3.0-beta.1") == PackageSpec( | ||
url="file:///tmp/foo.tar.gz", name="foo", requirements="~2.3.0-beta.1" | ||
# detached package | ||
assert PackageSpec("file:///tmp/some-lib@src-67e1043a673d2") == PackageSpec( | ||
url="file:///tmp/some-lib@src-67e1043a673d2", name="some-lib" | ||
) | ||
# detached folder with "@" symbol | ||
# detached folder without scheme | ||
pkg_dir = tmpdir_factory.mktemp("storage").join("[email protected]").mkdir() | ||
assert PackageSpec("file://%s" % str(pkg_dir)) == PackageSpec( | ||
assert PackageSpec(str(pkg_dir)) == PackageSpec( | ||
name="detached", url="file://%s" % pkg_dir | ||
) | ||
|
||
|