Fix tests

This commit is contained in:
Greg Neagle
2017-01-09 10:45:20 -08:00
parent ed3251e28f
commit dfbe8bbcad
6 changed files with 13 additions and 11 deletions

View File

@@ -30,14 +30,15 @@ For instance, here is the directory structure for all of the tests:
└── code
└── client
└── munkilib
├── appleupdates_test.py
── munkicommon
├── munkicommon_data_scaffolds.py
├── test_munkicommon_isapprunning.py
── test_munkicommon_unicode.py
├── data_scaffolds.py
── display
└── test_munkicommon_unicode.py
├── processes
└─── test_munkicommon_isapprunning.py
If you want to add tests for the `blockingApplicationsRunning` function, you would name it `test_blockingapplicationsrunning.py` and place it in `tests/code/client/munkilib/munkicommon`. The resulting file structure would look like this:
If you want to add tests for the `blockingApplicationsRunning` function, you would name it `test_blockingapplicationsrunning.py` and place it in `tests/code/client/munkilib`. The resulting file structure would look like this:
tests
├── README.md

View File

@@ -20,10 +20,10 @@ Unit tests for display.display_* functions.
# See the License for the specific language governing permissions and
# limitations under the License.
import munkilib.display as display
import unittest
from munkilib import display
MSG_UNI = u'Günther\'s favorite thing is %s'
MSG_STR = 'Günther\'s favorite thing is %s'

View File

@@ -20,10 +20,11 @@ Unit tests for processes.isAppRunning.
# See the License for the specific language governing permissions and
# limitations under the License.
from munkilib import processes
import unittest
from data_scaffolds import getRunningProcessesMock
from ..data_scaffolds import getRunningProcessesMock
from munkilib import processes
try:
from mock import patch