Skip to content

Commit

Permalink
WIP - tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mvollmer committed Nov 11, 2024
1 parent b3c57ac commit ccbfbe7
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions test/verify/check-lib-typeahead
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()

0 comments on commit ccbfbe7

Please sign in to comment.