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)
 def test_directoriesToBeIgnored_ShouldBeEmpty_FromNone(self):
     config = Builder().setignoredirectories(configuration.parsesplittedproperty(None)).build()
     self.assertEqual(0, len(config.ignoredirectories))
 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)
 def test_fileExtensionsToBeIgnored_SingleExtension(self):
     config = Builder().setignorefileextensions(configuration.parsesplittedproperty(" .zip  ")).build()
     self.assertEqual(1, len(config.ignorefileextensions))
     self.assertEqual(['.zip'], config.ignorefileextensions)
 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)
Beispiel #6
0
 def test_fileExtensionsToBeIgnored_ShouldBeEmpty_FromNone(self):
     config = Builder().setignorefileextensions(configuration.parsesplittedproperty(None)).build()
     self.assertEqual(0, len(config.ignorefileextensions))
 def test_fileExtensionsToBeIgnored_ShouldBeEmpty_FromNone(self):
     config = Builder().setignorefileextensions(configuration.parsesplittedproperty(None)).build()
     self.assertEqual(0, len(config.ignorefileextensions))
Beispiel #8
0
 def test_gitattributes_ShouldBeEmpty_FromEmpty(self):
     config = Builder().setgitattributes(configuration.parsesplittedproperty("")).build()
     self.assertEqual(0, len(config.gitattributes))
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #12
0
 def test_directoriesToBeIgnored_ShouldBeEmpty_FromNone(self):
     config = Builder().setignoredirectories(configuration.parsesplittedproperty(None)).build()
     self.assertEqual(0, len(config.ignoredirectories))
Beispiel #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)
Beispiel #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)
 def test_gitattributes_ShouldBeEmpty_FromEmpty(self):
     config = Builder().setgitattributes(configuration.parsesplittedproperty("")).build()
     self.assertEqual(0, len(config.gitattributes))
 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)
 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)
Beispiel #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)