mirror of
https://github.com/munki/munki.git
synced 2026-01-05 14:10:00 -06:00
Fix tests
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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'
|
||||
0
code/client/tests/munkilib/processes/__init__.py
Normal file
0
code/client/tests/munkilib/processes/__init__.py
Normal 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
|
||||
Reference in New Issue
Block a user