Displaying 9 results from an estimated 9 matches for "pytest".
Did you mean:
mytest
2007 Feb 12
6
prototype.js and different browsers
Hi
I''m currently learning how AJAX is working and found prototype.js interesting.
But I have some issues that might be because of misusage:
http://brasilia.nersc.no/test/PyTest/AJAX.html
When I use this in Firefox2 it correctly fills the first select, using opera9
it is filled, but it just shows a list of "blank" options (no description),
and in IE6 it doesn''t get filled at all.
I use python in the backend, and feeding it the input it replies correct...
2019 Nov 22
3
Re: [PATCH nbdkit v2 10/10] tests: Test the Python plugin thoroughly.
...> +# Test the size.
> +h = test ({"size": 512})
> +assert h.get_size() == 512
> +h = test ({"size": 1024*1024})
> +assert h.get_size() == 1024*1024
These tests will fail when on the first error, which is less useful.
With very little work we can convert this to pytest:
def test_size():
h = test()
assert h.get_size() == 512
To run the test you use:
pytest test-python.py
> +
> +# Test each flag call.
> +h = test ({"size": 512, "is_rotational": True})
> +assert h.is_rotational()
> +h = test ({"size": 512, "...
2019 Nov 23
2
Re: [PATCH nbdkit v2 10/10] tests: Test the Python plugin thoroughly.
...rks.
> > > +h = test ({})
> >
> > So we have now running nbdkit that will exit the python collects when h
> > is implicitly closed when creating a new handle?
> >
> > This is fragile, but can be solved with the help of a testing framework.
> [...]
> > pytest test-python.py
>
> I'll probably use unittest though because it's built into Python and
> because it's what we use in libguestfs, hivex etc but yes good idea.
>
> Thanks,
>
> Rich.
>
> --
> Richard Jones, Virtualization Group, Red Hat http://people.redhat.c...
2019 Nov 23
0
Re: [PATCH nbdkit v2 10/10] tests: Test the Python plugin thoroughly.
...to ensure the machinery of the test works.
> > +h = test ({})
>
> So we have now running nbdkit that will exit the python collects when h
> is implicitly closed when creating a new handle?
>
> This is fragile, but can be solved with the help of a testing framework.
[...]
> pytest test-python.py
I'll probably use unittest though because it's built into Python and
because it's what we use in libguestfs, hivex etc but yes good idea.
Thanks,
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualiza...
2022 Oct 19
0
[Announce] Samba 4.17.1 Available for Download
...* BUG 15195: Permission denied calling SMBC_getatr when file not exists.
o? Douglas Bagnall <douglas.bagnall at catalyst.net.nz>
?? * BUG 15189: Samba 4.5 sometimes cannot be upgraded to Samba 4.6 or
later
???? over DRS: WERROR_DS_DRA_MISSING_PARENT due to faulty GET_ANC.
?? * BUG 15191: pytest: add file removal helpers for TestCaseInTempDir.
o? Andrew Bartlett <abartlet at samba.org>
?? * BUG 14611: CVE-2021-20251 [SECURITY] Bad password count not
incremented
???? atomically.
?? * BUG 15189: Samba 4.5 sometimes cannot be upgraded to Samba 4.6 or
later.
???? over DRS: WERROR_...
2022 Oct 19
0
[Announce] Samba 4.17.1 Available for Download
...* BUG 15195: Permission denied calling SMBC_getatr when file not exists.
o? Douglas Bagnall <douglas.bagnall at catalyst.net.nz>
?? * BUG 15189: Samba 4.5 sometimes cannot be upgraded to Samba 4.6 or
later
???? over DRS: WERROR_DS_DRA_MISSING_PARENT due to faulty GET_ANC.
?? * BUG 15191: pytest: add file removal helpers for TestCaseInTempDir.
o? Andrew Bartlett <abartlet at samba.org>
?? * BUG 14611: CVE-2021-20251 [SECURITY] Bad password count not
incremented
???? atomically.
?? * BUG 15189: Samba 4.5 sometimes cannot be upgraded to Samba 4.6 or
later.
???? over DRS: WERROR_...
2019 Nov 24
0
Re: [PATCH nbdkit v2 10/10] tests: Test the Python plugin thoroughly.
...> > >
> > > So we have now running nbdkit that will exit the python collects when h
> > > is implicitly closed when creating a new handle?
> > >
> > > This is fragile, but can be solved with the help of a testing framework.
> > [...]
> > > pytest test-python.py
> >
> > I'll probably use unittest though because it's built into Python and
> > because it's what we use in libguestfs, hivex etc but yes good idea.
> >
> > Thanks,
> >
> > Rich.
> >
> > --
> > Richard Jones, Vi...
2019 Nov 24
1
Re: [PATCH nbdkit v2 10/10] tests: Test the Python plugin thoroughly.
...have now running nbdkit that will exit the python collects
> when h
> > > > is implicitly closed when creating a new handle?
> > > >
> > > > This is fragile, but can be solved with the help of a testing
> framework.
> > > [...]
> > > > pytest test-python.py
> > >
> > > I'll probably use unittest though because it's built into Python and
> > > because it's what we use in libguestfs, hivex etc but yes good idea.
> > >
> > > Thanks,
> > >
> > > Rich.
> > >...
2019 Nov 22
18
[PATCH nbdkit v2 00/10] Implement nbdkit API v2 for Python plugins.
v1:
https://www.redhat.com/archives/libguestfs/2019-November/msg00153.html
v2:
- Fix implementation of can_cache.
- Add implementation of can_fua.
- Add a very thorough test suite which tests every command + flag
combination.