Skip to content
Snippets Groups Projects
Select Git revision
  • 233514d52cdff7c82adb28ec66a1a6e264197468
  • master default protected
  • add-frequency-to-form
  • dev protected
  • ckan-2.11.0
  • add-package-custom-fields
  • fix-adding-datasets-for-users-and-editors
  • add-auth-subroute
  • 71-migrate-custom-fields-to-ckanext-scheming
  • add-author-maintainer-information
  • fix-inline-flex-btns
  • fix-known-spatial-uri-validation
  • py3
  • 47-aktuelle-resource-einer-collection-wird-nicht-mehr-gefunden
  • 10-eingabe-der-dct-accrualperiodicity-in-weboberflache
  • v1.3
  • 2.5.3
  • 2.5.2
  • 2.5.1
  • 2.5.0
  • 2.4.7
  • 2.4.6
  • 2.4.5
  • 2.4.4
  • 2.4.3
  • 2.4.2
  • 2.4.1
  • 2.4.0
  • 2.3.1
  • 2.3.0
  • 2.2.0
  • 2.1.0
  • 2.0.0
  • 1.4.3
  • 1.4.2
  • 1.4.1
36 results

odsh_guessformat.js

Blame
  • test_gml_format.py 491 B
    import unittest
    from formats.gml_format import is_valid
    
    
    class TestGmlFormat(unittest.TestCase):
        def test_is_valid__valid(self):
            resource = {}
            with open("tests/data/bermuda.gml", "r") as file:
                self.assertTrue(is_valid(resource, file))
    
        def test_is_valid__invalid(self):
            resource = {}
            with open("tests/data/correct.xml", "r") as file:
                self.assertFalse(is_valid(resource, file))
    
    
    if __name__ == "__main__":
        unittest.main()