rocka
47ce6fc2e4
feat: add jq source ( #261 )
...
feat: add jq source to parse json
2024-03-31 16:10:09 +08:00
Chih-Hsuan Yen
beceadddee
tests: update Debian package versions
2024-03-24 11:45:49 +08:00
lilydjwg
de1a3c6fc2
record rich results in verfile and get rid of Result & VersData types
...
Use RichResult to replace Result; Result was RichResult plus entry name.
2024-03-14 18:30:15 +08:00
David Arnold
f29bdee6a3
feat: return full results from result processing
2024-03-14 10:40:25 +01:00
lilydjwg
471b66ff4c
tests: use pytest-rerunfailures instead of flaky
...
flaky is no longer compatible with pytest 8.0 and seems unmaintained.
https://github.com/pytest-dev/pytest/issues/12066
2024-03-09 20:23:25 +08:00
lilydjwg
4ec12d30fd
mercurial: tests: update asyncio mark
2024-03-09 19:59:01 +08:00
lilydjwg
1005bd5f01
mercurial: update tests
2024-03-09 19:19:06 +08:00
lilydjwg
4ad3bdb95d
go: style: unify indentation etc
2024-03-09 18:48:47 +08:00
lilydjwg
5227df6f5b
Merge remote-tracking branch 'origin/pr/170'
2024-03-09 18:44:04 +08:00
yingziwu
0e0eb2c363
feat: add go pkg support ( #259 )
2024-03-09 18:41:20 +08:00
lilydjwg
1e5de6cbcb
support using prefix and from_pattern/to_pattern at the same time
...
closes #249 .
2024-02-27 13:52:35 +08:00
Bian Jiaping
fac30d46d9
Fix container test for multi-arch images
2023-12-18 14:58:56 +08:00
Chih-Hsuan Yen
4ca61ba11a
tests: fix for pytest-asyncio 0.23
2023-12-09 20:38:00 +08:00
moui0
918457afed
tests: bump example and xml2 version
2023-12-07 06:01:56 +01:00
Bian Jiaping
4833135f87
container source plugin supports watching update of a specified tag ( #243 )
...
container source plugin supports watching update of a specified tag. Resolve #241
2023-12-02 23:45:25 +08:00
Daniel Peukert
5a6fee2817
fix pacman test
2023-10-18 01:59:43 +02:00
lilydjwg
5dcb3bc36a
tests: update
2023-10-14 15:19:13 +08:00
lilydjwg
2683f47e04
update tests: give up deepin as it times out frequently
2023-08-26 10:23:40 +08:00
lilydjwg
0a90d195d1
update tests
2023-08-26 10:17:40 +08:00
Daniel Peukert
5052d82550
github: implement option to include prereleases
2023-08-25 23:23:30 +02:00
Chih-Hsuan Yen
386d05f8e3
tests: skip testing with broken Deepin mirror
2023-08-22 19:51:16 +08:00
Chih-Hsuan Yen
07cddd9bd6
tests: fix tests with httpbin 0.10.0
...
The latest httpbin changes the format of JSON response. For example:
```
{
"authenticated": true,
"user": "username"
}
```
2023-08-22 18:44:51 +08:00
Chih-Hsuan Yen
598bb94135
tests: update Android SDK version
2023-08-22 18:40:01 +08:00
Eric Long
fe1342e9fb
tests: bump android-sdk-cmake and xml2 version
2023-07-13 16:54:24 +08:00
Chih-Hsuan Yen
d9888cc49d
Fix test_alpmfiles in Arch chroots
...
In general, there are no /var/lib/pacman/sync/*.files in Arch chroots,
and thus tests in test_alpmfiles.py fail.
The tempfile approach roughly follows tests/test_alpm.py.
Follow-up https://github.com/lilydjwg/nvchecker/pull/226
2023-06-19 22:06:47 +08:00
lilydjwg
e708d19d35
tests: update test_htmlparser to avoid httpbin.org
...
it produces a lot of 504 errors.
2023-06-02 00:58:24 +08:00
Pekka Ristola
8157e08b59
Add alpmfiles source
...
Rewritten from the `archfiles` source in archlinuxcn/lilac
2023-05-31 21:29:17 +03:00
lilydjwg
af77af34f3
fight mypy[1]
...
The following error will be reported without if:
error: Name "tomllib" already defined (by an import)
While this can be silenced by a "# type: ignore", in some case[2] mypy
will report the following error:
error: Unused "type: ignore" comment
[1]: https://github.com/python/mypy/issues/1153
[2]: https://github.com/lilydjwg/nvchecker/actions/runs/4916840821/jobs/8793454970
2023-05-09 13:31:11 +08:00
lilydjwg
e9ecbd514b
silence mypy for new module
2023-05-08 23:28:20 +08:00
Felix Yan
34e87db8f9
Use tomllib on Python 3.11+
...
Fallback to tomli for compatibility with older Python.
2023-05-08 10:52:27 +03:00
Alexandru Fikl
fed4fc52ff
test_cran: bump xml2 version to pass test
2023-05-01 09:59:16 +03:00
Chih-Hsuan Yen
166dfb11a4
Fix test_alpm in Arch chroots
...
Arch chroots with recent devtools has options=(debug) by default, and
thus test_alpm fails:
_________________________ ERROR at setup of test_alpm __________________________
module = <module 'tests.test_alpm' from '/build/nvchecker/src/nvchecker/tests/test_alpm.py'>
def setup_module(module):
global temp_dir, db_path
temp_dir = tempfile.TemporaryDirectory()
temp_path = pathlib.Path(temp_dir.name)
pkg_path = temp_path / 'test-pkg'
pkg_path.mkdir()
with (pkg_path / 'PKGBUILD').open('w') as f:
f.write(
'pkgname=test-pkg\n'
'pkgver=1.2.3\n'
'pkgrel=4\n'
'arch=(any)\n'
'provides=("test-provides=5.6-7" "test-provides-unversioned")\n'
)
subprocess.check_call(['makepkg', '--nosign'], cwd=pkg_path)
pkg_file = subprocess.check_output(['makepkg', '--packagelist'], cwd=pkg_path, text=True).strip()
db_path = pkg_path / 'test-db'
db_path.mkdir()
repo_path = db_path / 'sync'
repo_path.mkdir()
> subprocess.check_call([
'repo-add',
repo_path / 'test-repo.db.tar.gz',
pkg_path / pkg_file
])
tests/test_alpm.py:40:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['repo-add', PosixPath('/tmp/tmp2kl26h_y/test-pkg/test-db/sync/test-repo.db.tar.gz'), PosixPath('/pkgdest/test-pkg-1.2.3-4-any.pkg.tar.zst\n/pkgdest/test-pkg-debug-1.2.3-4-any.pkg.tar.zst')],)
kwargs = {}, retcode = 1
cmd = ['repo-add', PosixPath('/tmp/tmp2kl26h_y/test-pkg/test-db/sync/test-repo.db.tar.gz'), PosixPath('/pkgdest/test-pkg-1.2.3-4-any.pkg.tar.zst\n/pkgdest/test-pkg-debug-1.2.3-4-any.pkg.tar.zst')]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['repo-add', PosixPath('/tmp/tmp2kl26h_y/test-pkg/test-db/sync/test-repo.db.tar.gz'), PosixPath('/pkgdest/test-pkg-1.2.3-4-any.pkg.tar.zst\n/pkgdest/test-pkg-debug-1.2.3-4-any.pkg.tar.zst')]' returned non-zero exit status 1.
/usr/lib/python3.10/subprocess.py:369: CalledProcessError
---------------------------- Captured stdout setup -----------------------------
==> Making package: test-pkg 1.2.3-4 (Fri Apr 7 11:53:43 2023)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
==> Extracting sources...
==> Entering fakeroot environment...
==> Tidying install...
-> Removing libtool files...
-> Purging unwanted files...
-> Removing static library files...
-> Stripping unneeded symbols from binaries and libraries...
-> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "test-pkg"...
-> Generating .PKGINFO file...
-> Generating .BUILDINFO file...
-> Generating .MTREE file...
-> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: test-pkg 1.2.3-4 (Fri Apr 7 11:53:44 2023)
==> No packages modified, nothing to do.
---------------------------- Captured stderr setup -----------------------------
==> ERROR: File '/pkgdest/test-pkg-1.2.3-4-any.pkg.tar.zst
/pkgdest/test-pkg-debug-1.2.3-4-any.pkg.tar.zst' not found.
2023-04-07 20:38:17 +08:00
lilydjwg
577a42ef89
update tests
...
Microsoft's teams repo has gone.
2023-03-26 18:39:05 +08:00
lilydjwg
fad7cf631d
Merge remote-tracking branch 'origin/pr/212'
...
Conflicts:
setup.cfg
setup.py
2022-11-20 13:42:22 +08:00
Chih-Hsuan Yen
2fc6be9d4e
Update versions in test_{openvsx,vsmarketplace}
2022-10-29 14:22:23 +08:00
Chih-Hsuan Yen
3d3d8c6136
Fix test_{archpkg,pacman}
...
Apparently the ipw2100-fw package is dropped. I switched to another
package that is rarely updated.
2022-10-29 14:21:02 +08:00
lilydjwg
13cca483e1
update test_android_sdk.py
2022-08-12 13:52:04 +08:00
lilydjwg
914c6414e8
fix tests trying to raise exc_info=True
2022-06-12 14:22:14 +08:00
lilydjwg
8b32c26d1e
htmlparser: handle xpath pointing to element instead of text()
2022-06-12 12:31:11 +08:00
lilydjwg
ffe84cae08
add support for using awesomeversion to compare versions
2022-06-05 14:31:54 +08:00
lilydjwg
d706961669
update tests
2022-04-21 17:23:20 +08:00
lilydjwg
69a5d82d25
tests: fix some warnings
2022-04-07 14:06:03 +08:00
Chih-Hsuan Yen
c15e9b7576
android-sdk improvements
...
* Returns all matched versions to support list options
* Don't hard-code the host OS
* Document the default of `channel`
2022-04-02 11:53:27 +08:00
Dusk Banks
2598b0fd19
tests: pytest-asyncio asyncio_mode
-> strict
...
the `asyncio_mode` of `legacy` (current default) is deprecated.
`asyncio_mode` will be `strict` by default in the future.
2022-03-03 09:56:33 -08:00
Dusk Banks
9005c96d10
introduce tox support
2022-03-03 09:56:33 -08:00
Dusk Banks
a62866a2d3
tests: spell test_htmlparser correctly
2022-02-22 21:51:47 -08:00
Pekka Ristola
e03023bd6c
add CRAN support
2022-02-22 19:06:15 +02:00
Guizai
7739f5c8c0
fix: source sparkle ( #210 )
...
fix: source sparkle
2022-02-22 20:13:18 +08:00
依云
acb56d7827
Merge pull request #206 from alexfikl/bitbucket-order-tags
...
Bitbucket: Add support for queries and sorting
2022-02-08 14:40:59 +08:00
Alexandru Fikl
a8228bb594
bitbucket: use querying and sorting for improved tag search
2022-02-04 10:31:41 -06:00