Пример #1
0
 def test_directoriesToBeIgnored_MultipleExtensions(self):
     config = Builder().setignoredirectories(configuration.parsesplittedproperty(" project/dist ; project/lib ;  out ")) \
         .build()
     self.assertEqual(3, len(config.ignoredirectories))
     self.assertEqual(['project/dist', 'project/lib', 'out'], config.ignoredirectories)
Пример #2
0
 def test_directoriesToBeIgnored_ShouldBeEmpty_FromNone(self):
     config = Builder().setignoredirectories(configuration.parsesplittedproperty(None)).build()
     self.assertEqual(0, len(config.ignoredirectories))
Пример #3
0
 def test_directoriesToBeIgnored_SingleExtension(self):
     config = Builder().setignoredirectories(configuration.parsesplittedproperty(" project/dist  ")).build()
     self.assertEqual(1, len(config.ignoredirectories))
     self.assertEqual(['project/dist'], config.ignoredirectories)
Пример #4
0
 def test_fileExtensionsToBeIgnored_SingleExtension(self):
     config = Builder().setignorefileextensions(configuration.parsesplittedproperty(" .zip  ")).build()
     self.assertEqual(1, len(config.ignorefileextensions))
     self.assertEqual(['.zip'], config.ignorefileextensions)
Пример #5
0
 def test_fileExtensionsToBeIgnored_MultipleExtensions(self):
     config = Builder().setignorefileextensions(configuration.parsesplittedproperty(".zip; .jar;  .exe")) \
         .build()
     self.assertEqual(3, len(config.ignorefileextensions))
     self.assertEqual(['.zip', '.jar', '.exe'], config.ignorefileextensions)
Пример #6
0
 def test_fileExtensionsToBeIgnored_ShouldBeEmpty_FromNone(self):
     config = Builder().setignorefileextensions(configuration.parsesplittedproperty(None)).build()
     self.assertEqual(0, len(config.ignorefileextensions))
Пример #7
0
 def test_fileExtensionsToBeIgnored_ShouldBeEmpty_FromNone(self):
     config = Builder().setignorefileextensions(configuration.parsesplittedproperty(None)).build()
     self.assertEqual(0, len(config.ignorefileextensions))
Пример #8
0
 def test_gitattributes_ShouldBeEmpty_FromEmpty(self):
     config = Builder().setgitattributes(configuration.parsesplittedproperty("")).build()
     self.assertEqual(0, len(config.gitattributes))
Пример #9
0
 def test_gitattributes__SingleProperty(self):
     config = Builder().setgitattributes(configuration.parsesplittedproperty("  * text=auto  ")).build()
     self.assertEqual(1, len(config.gitattributes))
     self.assertEqual(['* text=auto'], config.gitattributes)
Пример #10
0
 def test_directoriesToBeIgnored_SingleExtension(self):
     config = Builder().setignoredirectories(configuration.parsesplittedproperty(" project/dist  ")).build()
     self.assertEqual(1, len(config.ignoredirectories))
     self.assertEqual(['project/dist'], config.ignoredirectories)
Пример #11
0
 def test_directoriesToBeIgnored_MultipleExtensions(self):
     config = Builder().setignoredirectories(configuration.parsesplittedproperty(" project/dist ; project/lib ;  out ")) \
         .build()
     self.assertEqual(3, len(config.ignoredirectories))
     self.assertEqual(['project/dist', 'project/lib', 'out'], config.ignoredirectories)
Пример #12
0
 def test_directoriesToBeIgnored_ShouldBeEmpty_FromNone(self):
     config = Builder().setignoredirectories(configuration.parsesplittedproperty(None)).build()
     self.assertEqual(0, len(config.ignoredirectories))
Пример #13
0
 def test_fileExtensionsToBeIgnored_MultipleExtensions(self):
     config = Builder().setignorefileextensions(configuration.parsesplittedproperty(".zip; .jar;  .exe")) \
         .build()
     self.assertEqual(3, len(config.ignorefileextensions))
     self.assertEqual(['.zip', '.jar', '.exe'], config.ignorefileextensions)
Пример #14
0
 def test_fileExtensionsToBeIgnored_SingleExtension(self):
     config = Builder().setignorefileextensions(configuration.parsesplittedproperty(" .zip  ")).build()
     self.assertEqual(1, len(config.ignorefileextensions))
     self.assertEqual(['.zip'], config.ignorefileextensions)
Пример #15
0
 def test_gitattributes_ShouldBeEmpty_FromEmpty(self):
     config = Builder().setgitattributes(configuration.parsesplittedproperty("")).build()
     self.assertEqual(0, len(config.gitattributes))
Пример #16
0
 def test_gitattributes__MultipleProperties(self):
     config = Builder().setgitattributes(configuration.parsesplittedproperty(" # some comment ;   * text=auto  ; *.sql text ")).build()
     self.assertEqual(3, len(config.gitattributes))
     self.assertEqual(['# some comment', '* text=auto', '*.sql text'], config.gitattributes)
Пример #17
0
 def test_gitattributes__SingleProperty(self):
     config = Builder().setgitattributes(configuration.parsesplittedproperty("  * text=auto  ")).build()
     self.assertEqual(1, len(config.gitattributes))
     self.assertEqual(['* text=auto'], config.gitattributes)
Пример #18
0
 def test_gitattributes__MultipleProperties(self):
     config = Builder().setgitattributes(configuration.parsesplittedproperty(" # some comment ;   * text=auto  ; *.sql text ")).build()
     self.assertEqual(3, len(config.gitattributes))
     self.assertEqual(['# some comment', '* text=auto', '*.sql text'], config.gitattributes)