Mercurial > libervia-backend
comparison tests/e2e/libervia-cli/conftest.py @ 4227:dfccc90cacc6
tests: fix and update tests:
- update code to newer version of `sh`
- update code to newer version of `selenium`
- update names of OMEMO algorithms
- fix paths and names used to mount source to the test container
- skip modules using `Gst` and `PyQt` when they are not available.
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 05 Mar 2024 17:31:56 +0100 |
parents | 4b842c1fb686 |
children |
comparison
equal
deleted
inserted
replaced
4226:3f7ca590a5da | 4227:dfccc90cacc6 |
---|---|
36 args = self.subcommands + list(args) | 36 args = self.subcommands + list(args) |
37 self.subcommands.clear() | 37 self.subcommands.clear() |
38 kwargs['output'] = 'json-raw' | 38 kwargs['output'] = 'json-raw' |
39 kwargs['_tty_out'] = False | 39 kwargs['_tty_out'] = False |
40 cmd = li(*args, **kwargs) | 40 cmd = li(*args, **kwargs) |
41 return json.loads(cmd.stdout) | 41 return json.loads(cmd) |
42 | 42 |
43 def __getattr__(self, name): | 43 def __getattr__(self, name): |
44 if name.startswith('_'): | 44 if name.startswith('_'): |
45 # no li subcommand starts with a "_", | 45 # no li subcommand starts with a "_", |
46 # and pytest uses some attributes with this name scheme | 46 # and pytest uses some attributes with this name scheme |
61 args = self.subcommands + list(args) | 61 args = self.subcommands + list(args) |
62 self.subcommands.clear() | 62 self.subcommands.clear() |
63 kwargs['output'] = 'xml-raw' | 63 kwargs['output'] = 'xml-raw' |
64 kwargs['_tty_out'] = False | 64 kwargs['_tty_out'] = False |
65 cmd = li(*args, **kwargs) | 65 cmd = li(*args, **kwargs) |
66 return self.parser(cmd.stdout.decode().strip()) | 66 return self.parser(cmd.strip()) |
67 | 67 |
68 | 68 |
69 class Editor: | 69 class Editor: |
70 | 70 |
71 def __init__(self): | 71 def __init__(self): |