示例#1
0
    def test_load_commands_without_build(self):
        yaml = '''hooks:
other:
  - python manage.py collectstatic
  - python manage.py migrate'''
        commands = load_commands(yaml)
        expected = []
        self.assertEqual(expected, commands)
示例#2
0
    def test_load_commands_without_build(self):
        yaml = '''hooks:
other:
  - python manage.py collectstatic
  - python manage.py migrate'''
        commands = load_commands(yaml)
        expected = []
        self.assertEqual(expected, commands)
示例#3
0
   def test_load_commands(self):
       yaml = '''hooks:
 build:
   - python manage.py collectstatic
   - python manage.py migrate'''
       commands = load_commands(yaml)
       expected = [
           'python manage.py collectstatic',
           'python manage.py migrate',
       ]
       self.assertEqual(expected, commands)
示例#4
0
   def test_load_commands(self):
       yaml = '''hooks:
 build:
   - python manage.py collectstatic
   - python manage.py migrate'''
       commands = load_commands(yaml)
       expected = [
           'python manage.py collectstatic',
           'python manage.py migrate',
       ]
       self.assertEqual(expected, commands)
示例#5
0
 def test_load_commands_empty_data(self):
     commands = load_commands('')
     expected = []
     self.assertEqual(expected, commands)
示例#6
0
 def test_load_commands_empty_data(self):
     commands = load_commands('')
     expected = []
     self.assertEqual(expected, commands)