Lines Matching defs:pytest

4     import pytest
6 sys.exit(pytest.main([__file__] + sys.argv[1:]))
12 import pytest
59 pytest.skip('drop_privileges requires root, skipping.')
73 @pytest.fixture
86 @pytest.mark.parametrize("cmdline_builder", (invoke_directly, invoke_mount_fuse,
88 @pytest.mark.parametrize("options", powerset(options))
89 @pytest.mark.parametrize("name", ('hello', 'hello_ll'))
101 with pytest.raises(IOError) as exc_info:
104 with pytest.raises(IOError) as exc_info:
115 @pytest.mark.parametrize("writeback", (False, True))
116 @pytest.mark.parametrize("name", ('passthrough', 'passthrough_plus',
118 @pytest.mark.parametrize("debug", (False, True))
145 pytest.skip('example does not support writeback caching')
193 @pytest.mark.parametrize("cache", (False, True))
262 @pytest.mark.skipif(fuse_proto < (7,11),
267 pytest.skip('%s not built' % os.path.basename(progname))
313 pytest.skip('%s not built' % os.path.basename(progname))
336 @pytest.mark.skipif(fuse_proto < (7,12),
338 @pytest.mark.parametrize("only_expire", ("invalidate_entries", "expire_entries"))
339 @pytest.mark.parametrize("notify", (True, False))
351 pytest.skip('only-expire not supported by running kernel')
369 with pytest.raises(FileNotFoundError):
377 @pytest.mark.parametrize("intended_user", ('root', 'non_root'))
381 Split into root vs non-root, so that the output of pytest
384 pytest.skip('needs to run as non-root')
386 pytest.skip('needs to run as root')
400 with pytest.raises(PermissionError):
408 @pytest.mark.skipif(os.getuid() != 0,
527 with pytest.raises(OSError) as exc_info:
552 with pytest.raises(OSError) as exc_info:
570 with pytest.raises(OSError) as exc_info:
655 with pytest.raises(OSError) as exc_info:
692 with pytest.raises(FileNotFoundError):