File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424 - name : Analysing the code with pylint
2525 run : |
2626 pylint `ls -r|grep .py$|xargs` --disable=import-error,E1101 || pylint-exit --error-fail --warn-fail --convention-fail $?
27- pylint 0_1_0 `ls -r|grep .py$|xargs` --disable=import-error,E1101 || pylint-exit --error-fail --warn-fail --convention-fail $?
27+ pylint openpod `ls -r|grep .py$|xargs` --disable=import-error,E1101 || pylint-exit --error-fail --warn-fail --convention-fail $?
2828
2929 pylint tests `ls -r|grep .py$|xargs` --disable=import-error,E1101 || pylint-exit --error-fail --warn-fail --convention-fail $?
Original file line number Diff line number Diff line change 44
55[ ![ Code Quality] ( https://github.com/RecursionSpace/OpenPod/actions/workflows/pylint.yml/badge.svg )] ( https://github.com/RecursionSpace/OpenPod/actions/workflows/pylint.yml )
66  ;
7- [ ![ Recursion Tests] ( https://github.com/RecursionSpace/OpenPod/actions/workflows/RecursionTests.yml/badge.svg )] ( https://github.com/RecursionSpace/OpenPod/actions/workflows/RecursionTests.yml )
7+ [ ![ Script Check] ( https://github.com/RecursionSpace/OpenPod/actions/workflows/ShellCheck.yml/badge.svg )] ( https://github.com/RecursionSpace/OpenPod/actions/workflows/ShellCheck.yml )
8+   ;
9+ [ ![ Recursion.Space Tests] ( https://github.com/RecursionSpace/OpenPod/actions/workflows/RecursionTests.yml/badge.svg )] ( https://github.com/RecursionSpace/OpenPod/actions/workflows/RecursionTests.yml )
810  ;
911[ ![ Test Installer] ( https://github.com/RecursionSpace/OpenPod/actions/workflows/TestInstaller.yml/badge.svg )] ( https://github.com/RecursionSpace/OpenPod/actions/workflows/TestInstaller.yml )
1012
Original file line number Diff line number Diff line change 1- import sys
2- sys .path .insert (0 , "0_1_0/" )
1+ ''' Unit test for pod.py '''
32
3+ import sys
44import unittest
55
6+ sys .path .insert (0 , "openpod/" )
7+
68# import hub
79
810# class TestHub(unittest.TestCase):
1618# global XBEE_FLAG
1719# XBEE_FLAG = False
1820# hub.incoming_xbee_data()
19- # self.assertTrue(XBEE_FLAG)
21+ # self.assertTrue(XBEE_FLAG)
Original file line number Diff line number Diff line change 1515sys .path .insert (0 , "0_1_0/" )
1616
1717class TestUpdater (unittest .TestCase ):
18+ '''Collection of tests.'''
1819
1920 def test_get_current_versions (self ):
21+ '''Verify that the current versions are returned.'''
2022 systemJSON = StringIO ("""{
2123 "serial": "536780dfe639468e8e23fc568006950d",
2224 "timezone": "America/New_York",
You can’t perform that action at this time.
0 commit comments