From 158e1025b11c6c6603de64b5c2bdc781888da92b Mon Sep 17 00:00:00 2001 From: chrys Date: Mon, 30 Jan 2017 20:58:53 +0100 Subject: [PATCH] move tests to new folder --- src/fenrir/commands/commands/flush_braille.py | 21 +++++++++++++ .../onApplicationChange/inactive/test.py | 25 +++++++++++++++ .../inactive/agetty.py | 31 +++++++++++++++++++ .../inactive/bash.py | 31 +++++++++++++++++++ .../inactive/vim.py | 31 +++++++++++++++++++ 5 files changed, 139 insertions(+) create mode 100644 src/fenrir/commands/commands/flush_braille.py create mode 100644 src/fenrir/commands/onApplicationChange/inactive/test.py create mode 100644 src/fenrir/commands/onSwitchApplicationProfile/inactive/agetty.py create mode 100644 src/fenrir/commands/onSwitchApplicationProfile/inactive/bash.py create mode 100644 src/fenrir/commands/onSwitchApplicationProfile/inactive/vim.py diff --git a/src/fenrir/commands/commands/flush_braille.py b/src/fenrir/commands/commands/flush_braille.py new file mode 100644 index 00000000..bdc34854 --- /dev/null +++ b/src/fenrir/commands/commands/flush_braille.py @@ -0,0 +1,21 @@ +#!/bin/python +# -*- coding: utf-8 -*- + +# Fenrir TTY screen reader +# By Chrys, Storm Dragon, and contributers. + +from core import debug + +class command(): + def __init__(self): + pass + def initialize(self, environment): + self.env = environment + def shutdown(self): + pass + def getDescription(self): + return 'flush the braille device if an message is written on' + def run(self): + self.env['runtime']['outputManager'].clearFlushTime() + def setCallback(self, callback): + pass diff --git a/src/fenrir/commands/onApplicationChange/inactive/test.py b/src/fenrir/commands/onApplicationChange/inactive/test.py new file mode 100644 index 00000000..ca4d74b6 --- /dev/null +++ b/src/fenrir/commands/onApplicationChange/inactive/test.py @@ -0,0 +1,25 @@ +#!/bin/python +# -*- coding: utf-8 -*- + +# Fenrir TTY screen reader +# By Chrys, Storm Dragon, and contributers. + +from core import debug + +class command(): + def __init__(self): + pass + def initialize(self, environment): + self.env = environment + def shutdown(self): + pass + def getDescription(self): + return 'No description found' + def run(self): + #print('new ', self.env['screenData']['newApplication']) + #print('old ', self.env['screenData']['oldApplication']) + #print('-----------') + pass + + def setCallback(self, callback): + pass diff --git a/src/fenrir/commands/onSwitchApplicationProfile/inactive/agetty.py b/src/fenrir/commands/onSwitchApplicationProfile/inactive/agetty.py new file mode 100644 index 00000000..dbd5250d --- /dev/null +++ b/src/fenrir/commands/onSwitchApplicationProfile/inactive/agetty.py @@ -0,0 +1,31 @@ +#!/bin/python +# -*- coding: utf-8 -*- + +# Fenrir TTY screen reader +# By Chrys, Storm Dragon, and contributers. + +from core import debug + +class command(): + def __init__(self): + pass + def initialize(self, environment): + self.env = environment + def shutdown(self): + pass + def getDescription(self): + return 'No description found' + def load(self): + print('--------------') + print('agetty') + print('load new',self.env['screenData']['newApplication']) + print('--------------') + + def unload(self): + print('--------------') + print('agetty') + print('unload old',self.env['screenData']['oldApplication']) + print('--------------') + + def setCallback(self, callback): + pass diff --git a/src/fenrir/commands/onSwitchApplicationProfile/inactive/bash.py b/src/fenrir/commands/onSwitchApplicationProfile/inactive/bash.py new file mode 100644 index 00000000..d82b6e9d --- /dev/null +++ b/src/fenrir/commands/onSwitchApplicationProfile/inactive/bash.py @@ -0,0 +1,31 @@ +#!/bin/python +# -*- coding: utf-8 -*- + +# Fenrir TTY screen reader +# By Chrys, Storm Dragon, and contributers. + +from core import debug + +class command(): + def __init__(self): + pass + def initialize(self, environment): + self.env = environment + def shutdown(self): + pass + def getDescription(self): + return 'No description found' + def load(self): + print('--------------') + print('bash') + print('load new',self.env['screenData']['newApplication']) + print('--------------') + + def unload(self): + print('--------------') + print('bash') + print('unload old',self.env['screenData']['oldApplication']) + print('--------------') + + def setCallback(self, callback): + pass diff --git a/src/fenrir/commands/onSwitchApplicationProfile/inactive/vim.py b/src/fenrir/commands/onSwitchApplicationProfile/inactive/vim.py new file mode 100644 index 00000000..74ae0c40 --- /dev/null +++ b/src/fenrir/commands/onSwitchApplicationProfile/inactive/vim.py @@ -0,0 +1,31 @@ +#!/bin/python +# -*- coding: utf-8 -*- + +# Fenrir TTY screen reader +# By Chrys, Storm Dragon, and contributers. + +from core import debug + +class command(): + def __init__(self): + pass + def initialize(self, environment): + self.env = environment + def shutdown(self): + pass + def getDescription(self): + return 'No description found' + def load(self): + print('--------------') + print('vim') + print('load new',self.env['screenData']['newApplication']) + print('--------------') + + def unload(self): + print('--------------') + print('vim') + print('unload old',self.env['screenData']['oldApplication']) + print('--------------') + + def setCallback(self, callback): + pass