added some basic unittests
changed warning/success message system to a new style unified design of "hints" in form interfaces fixed small bugs in "network" and "partition" plugin interfaces "partition" and "disks" plugins: show blockdevice size during device selection german translation for "disks" plugin added
This commit is contained in:
parent
29d2e442f2
commit
c35e204a7b
34 changed files with 197 additions and 57 deletions
10
pythonrewrite/plugins/volume_mount/unittests.py
Normal file
10
pythonrewrite/plugins/volume_mount/unittests.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
import WebInterfaceTestClass
|
||||
|
||||
class unittests(WebInterfaceTestClass.WebInterfaceTestClass):
|
||||
|
||||
def test_read_form(self):
|
||||
url = self.URL + "plugins/volume_mount?weblang=en&device=%2Fdev%2Floop1"
|
||||
self.register_auth(url)
|
||||
self.cmd.go(url)
|
||||
self.cmd.find('ctivate volume')
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
<h2><?cs var:html_escape(Lang.Plugins.volume_mount.Title.Mount) ?></h2>
|
||||
|
||||
<?cs call:handle_messages() ?>
|
||||
|
||||
<p><?cs call:print_form_header("mount", "plugins/volume_mount") ?>
|
||||
<input type="hidden" name="device" value="<?cs var:html_escape(Data.CurrentDisk.device) ?>" />
|
||||
<?cs if:Data.CurrentDisk.encryption ?>
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<h2><?cs var:html_escape(Lang.Plugins.volume_mount.Title.Umount) ?></h2>
|
||||
|
||||
<?cs call:handle_messages() ?>
|
||||
|
||||
<?cs call:print_form_header("umount", "plugins/volume_mount") ?>
|
||||
<p><input type="hidden" name="device" value="<?cs var:html_escape(Data.CurrentDisk.device) ?>" />
|
||||
<input type="hidden" name="action" value="umount" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue