Merge pull request #219 from yan12125/minor-fixes

Several minor fixes for docs and tests
This commit is contained in:
依云 2022-10-29 14:37:55 +08:00 committed by GitHub
commit 115963ab93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 11 deletions

View File

@ -886,7 +886,7 @@ openvsx
The extension's Unique Identifier on open-vsx.org, e.g. ``ritwickdey.LiveServer``.
Check Visual Studio Code Marketplace
~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
::
source = "vsmarketplace"

View File

@ -7,16 +7,16 @@ pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net]
@flaky
async def test_archpkg(get_version):
assert await get_version("ipw2100-fw", {
assert await get_version("base", {
"source": "archpkg",
}) == "1.3-10"
}) == "3-1"
@flaky
async def test_archpkg_strip_release(get_version):
assert await get_version("ipw2100-fw", {
assert await get_version("base", {
"source": "archpkg",
"strip_release": True,
}) == "1.3"
}) == "3"
@flaky
async def test_archpkg_provided(get_version):

View File

@ -7,4 +7,4 @@ pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net]
async def test_openvsx(get_version):
assert await get_version("usernamehw.indent-one-space", {
"source": "openvsx",
}) == "0.2.7"
}) == "0.3.0"

View File

@ -11,12 +11,12 @@ pytestmark = [pytest.mark.asyncio,
reason="requires synced pacman databases")]
async def test_pacman(get_version):
assert await get_version("ipw2100-fw", {
assert await get_version("base", {
"source": "pacman",
}) == "1.3-10"
}) == "3-1"
async def test_pacman_strip_release(get_version):
assert await get_version("ipw2100-fw", {
assert await get_version("base", {
"source": "pacman",
"strip_release": 1,
}) == "1.3"
}) == "3"

View File

@ -7,4 +7,4 @@ pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net]
async def test_vsmarketplace(get_version):
assert await get_version("usernamehw.indent-one-space", {
"source": "vsmarketplace",
}) == "0.2.8"
}) == "0.3.0"