initial commit
This commit is contained in:
23
python-rofi/tests/test.py
Executable file
23
python-rofi/tests/test.py
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from rofi import Rofi
|
||||
|
||||
|
||||
def test_basic():
|
||||
# rofi = Rofi()
|
||||
# rofi = Rofi(
|
||||
# config_file="~/.config/rofi/aniwrapper.rasi",
|
||||
# theme_str="window { width: 25%; }",
|
||||
# )
|
||||
rofi = Rofi(
|
||||
config_file="~/.config/rofi/aniwrapper-dracula.rasi",
|
||||
theme_str="window { width: 25%; }",
|
||||
)
|
||||
# rofi = Rofi(config_file="~/.config/rofi/aniwrapper-dracula.rasi")
|
||||
name = rofi.text_entry("What is your name?")
|
||||
print("Hello, {}!".format(name))
|
||||
assert name and name != "", "Name is empty"
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
test_basic()
|
||||
Reference in New Issue
Block a user