-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/usr/bin/python3 -cimport os, sys; os.execv(os.path.dirname(sys.argv[1]) + "/../common/pywrap", sys.argv) | ||
|
||
# This file is part of Cockpit. | ||
# | ||
# Copyright (C) 2024 Red Hat, Inc. | ||
# | ||
# Cockpit is free software; you can redistribute it and/or modify it | ||
# under the terms of the GNU Lesser General Public License as published by | ||
# the Free Software Foundation; either version 2.1 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# Cockpit is distributed in the hope that it will be useful, but | ||
# WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
# Lesser General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Lesser General Public License | ||
# along with Cockpit; If not, see <https://www.gnu.org/licenses/>. | ||
|
||
import json | ||
Check notice Code scanning / CodeQL Unused import Note test
Import of 'json' is not used.
|
||
import os | ||
Check notice Code scanning / CodeQL Unused import Note test
Import of 'os' is not used.
|
||
import subprocess | ||
Check notice Code scanning / CodeQL Unused import Note test
Import of 'subprocess' is not used.
|
||
import tempfile | ||
Check notice Code scanning / CodeQL Unused import Note test
Import of 'tempfile' is not used.
|
||
import time | ||
Check notice Code scanning / CodeQL Unused import Note test
Import of 'time' is not used.
|
||
from pathlib import Path | ||
Check notice Code scanning / CodeQL Unused import Note test
Import of 'Path' is not used.
|
||
|
||
|
||
import testlib | ||
|
||
@testlib.nondestructive | ||
class TestTypeahead(testlib.MachineCase): | ||
|
||
def testBasic(self): | ||
m = self.machine | ||
Check notice Code scanning / CodeQL Unused local variable Note test
Variable m is not used.
|
||
b = self.browser | ||
Check notice Code scanning / CodeQL Unused local variable Note test
Variable b is not used.
|
||
|
||
|
||
if __name__ == '__main__': | ||
testlib.test_main() |