зеркало из https://github.com/mozilla/FlightDeck.git
forgotten files added
This commit is contained in:
Родитель
ffcca23f95
Коммит
b24893c680
|
@ -0,0 +1,17 @@
|
|||
# git-ls-files --others --exclude-from=.git/info/exclude
|
||||
# Lines that start with '#' are comments.
|
||||
# For a project mostly in C, the following would be a good set of
|
||||
# exclude patterns (uncomment them if you want to use them):
|
||||
# *.[oa]
|
||||
# *~
|
||||
adminmedia
|
||||
flightdeckenv
|
||||
flightdeck/media/jetpack
|
||||
flightdeck/media/tutorial
|
||||
# flightdeck/media/bespin
|
||||
flightdeck/media/codemirror
|
||||
flightdeck/media/roar
|
||||
flightdeck/media/api
|
||||
flightdeck/jetpack/media/media
|
||||
upload
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
from test_utils import TestCase
|
||||
|
||||
from django.contrib.auth.models import User
|
||||
|
||||
from jetpack.models import Package
|
||||
|
||||
|
||||
class LibraryTest(TestCase):
|
||||
fixtures = ['mozilla_user', 'users', 'core_sdk', 'packages']
|
||||
|
||||
def setUp(self):
|
||||
self.author = User.objects.get(username='john')
|
||||
|
||||
def test_library_has_no_main_module(self):
|
||||
" library has no executable module "
|
||||
lib = Package.objects.get(type='l', author=self.author)
|
||||
self.assertEqual(lib.latest.get_main_module(), None)
|
||||
|
Загрузка…
Ссылка в новой задаче