diff options
author | Tim McNamara <paperless@timmcnamara.co.nz> | 2010-08-14 11:07:59 (GMT) |
---|---|---|
committer | Tim McNamara <paperless@timmcnamara.co.nz> | 2010-08-14 11:07:59 (GMT) |
commit | 6f277932500320053f26b16ffd301508c2a3f1dc (patch) | |
tree | 8335f20358cadd7aea2d53bde758224f53cbce9c | |
parent | 741e8fd0686fe971c42d73133c601e878f398f2a (diff) |
Fixes to start
Various fixes at the start of these files
- shebangs corrected
- encoding declaration corrected
- parent directory appended to PYTHONPATH
-rwxr-xr-x | Experior.Activity/tests/test_sbexecutionengine.py | 37 | ||||
-rwxr-xr-x | Experior.Activity/tests/test_sbgui.py | 35 | ||||
-rwxr-xr-x | Experior.Activity/tests/test_widgetIdentifier.py | 3 |
3 files changed, 42 insertions, 33 deletions
diff --git a/Experior.Activity/tests/test_sbexecutionengine.py b/Experior.Activity/tests/test_sbexecutionengine.py index 29582c0..af53d61 100755 --- a/Experior.Activity/tests/test_sbexecutionengine.py +++ b/Experior.Activity/tests/test_sbexecutionengine.py @@ -1,23 +1,26 @@ -#!/usr/bin/env python -# encoding: utf-8 -""" -test_sbexecutionengine.py +#! /usr/bin/env python +# -*- encoding: utf-8 -*- -This file is part of sugarbot. +#test_sbexecutionengine.py -sugarbot is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. +#This file is part of sugarbot. -sugarbot 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 General Public License for more details. +#sugarbot is free software: you can redistribute it and/or modify +#it under the terms of the GNU General Public License as published by +#the Free Software Foundation, either version 3 of the License, or +#(at your option) any later version. + +#sugarbot 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 General Public License for more details. + +#You should have received a copy of the GNU General Public License +#along with sugarbot. If not, see <http://www.gnu.org/licenses/>. + +from sys import path +path.append('..') -You should have received a copy of the GNU General Public License -along with sugarbot. If not, see <http://www.gnu.org/licenses/>. -""" from sbexecutionengine import * logging.raiseExceptions = 0 @@ -107,4 +110,4 @@ def sugarbot_main(param): self.ee.executePy() assert 0 except: - pass
\ No newline at end of file + pass diff --git a/Experior.Activity/tests/test_sbgui.py b/Experior.Activity/tests/test_sbgui.py index f526d5f..6de3e87 100755 --- a/Experior.Activity/tests/test_sbgui.py +++ b/Experior.Activity/tests/test_sbgui.py @@ -1,24 +1,27 @@ -#!/usr/bin/env python -# encoding: utf-8 -""" -test_sbgui.py +#! /usr/bin/env python +# -*- encoding: utf-8 -*- -This file is part of sugarbot. +#test_sbgui.py -sugarbot is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. +#This file is part of sugarbot. -sugarbot 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 General Public License for more details. +#sugarbot is free software: you can redistribute it and/or modify +#it under the terms of the GNU General Public License as published by +#the Free Software Foundation, either version 3 of the License, or +#(at your option) any later version. + +#sugarbot 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 General Public License for more details. + +#You should have received a copy of the GNU General Public License +#along with sugarbot. If not, see <http://www.gnu.org/licenses/>. -You should have received a copy of the GNU General Public License -along with sugarbot. If not, see <http://www.gnu.org/licenses/>. -""" import unittest +from sys import path +path.append('..') + import sbexecutionengine from sbgui import * diff --git a/Experior.Activity/tests/test_widgetIdentifier.py b/Experior.Activity/tests/test_widgetIdentifier.py index 83f6b3f..c2fedb0 100755 --- a/Experior.Activity/tests/test_widgetIdentifier.py +++ b/Experior.Activity/tests/test_widgetIdentifier.py @@ -1,3 +1,6 @@ +from sys import path +path.append('..') + from widgetIdentifier import * class test_widgetIdentifier: |