示例#1
0
 def setUp(self):
     self.ckan = Ckan(contents="""{
         "spec_version": "v1.4",
         "identifier":   "AwesomeMod",
         "version":      "1.0.0",
         "ksp_version":  "1.7.3",
         "author":       [ "techman83", "DasSkelett", "politas" ],
         "license":      [ "CC-BY-NC-SA-4.0", "GPL-3.0", "MIT" ],
         "kind":         "metapackage"
     }""")
示例#2
0
 def setUp(self):
     self.ckan = Ckan(contents="""{
         "spec_version": "v1.4",
         "identifier":   "NASA-CountDown",
         "version":      "1.3.9.1",
         "ksp_version":  "1.8",
         "author":       "linuxgurugamer",
         "license":      "CC-BY-NC-SA",
         "download":     "https://spacedock.info/mod/1462/NASA%20CountDown%20Clock%20Updated/download/1.3.9.1",
         "download_content_type": "application/zip"
     }""")
示例#3
0
 def setUp(self):
     self.ckan = Ckan(contents="""{
         "spec_version": "v1.4",
         "identifier":   "AwesomeMod",
         "version":      "1.0.0",
         "ksp_version":  "1.7.3",
         "author":       "techman83",
         "license":      "CC-BY-NC-SA-4.0",
         "download":     "https://awesomesite.org/awesomemod-1.0.0.zip",
         "download_content_type": "application/zip"
     }""")
示例#4
0
 def setUp(self):
     self.ckan = Ckan(contents='{}')