f84d7243d70c2f8a2a7b7a4390141789fb181ceb,tests/log_test.py,LogTestCase,setUp,#LogTestCase#,15
Before Change
def setUp(self):
super(LogTestCase, self).setUp()
self.user = "test_user"
self.pkg = "pkg"
self.hashes = ["123", "456", "789"]
// Upload three package hashes.
for h in self.hashes:
pkgurl = "/api/package/{usr}/{pkg}/{hash}".format(
usr=self.user,
pkg=self.pkg,
hash=h
)
resp = self.app.put(
pkgurl,
data=json.dumps(dict(
description=""
)),
content_type="application/json",
headers={
"Authorization": self.user
}
)
assert resp.status_code == requests.codes.ok
def testLog(self):
resp = self.app.get(
"/api/log/{usr}/{pkg}/".format(
usr=self.user,
After Change
Test log endpoint.
def setUp(self):
super(LogTestCase, self).setUp()
self.user = "test_user"
self.pkg = "pkg"
self.contents_list = [
{"foo": []},
{"bar": []},
{"baz": []},
]
// Upload three package instances.
for contents in self.contents_list:
self.put_package(self.user, self.pkg, contents)
def testLog(self):
resp = self.app.get(
"/api/log/{usr}/{pkg}/".format(
usr=self.user,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 32
Instances
Project Name: quiltdata/quilt
Commit Name: f84d7243d70c2f8a2a7b7a4390141789fb181ceb
Time: 2017-02-22
Author: dima@gmail.com
File Name: tests/log_test.py
Class Name: LogTestCase
Method Name: setUp
Project Name: quiltdata/quilt
Commit Name: f84d7243d70c2f8a2a7b7a4390141789fb181ceb
Time: 2017-02-22
Author: dima@gmail.com
File Name: tests/log_test.py
Class Name: LogTestCase
Method Name: setUp
Project Name: quiltdata/quilt
Commit Name: f84d7243d70c2f8a2a7b7a4390141789fb181ceb
Time: 2017-02-22
Author: dima@gmail.com
File Name: tests/tag_test.py
Class Name: TagTestCase
Method Name: setUp
Project Name: quiltdata/quilt
Commit Name: f84d7243d70c2f8a2a7b7a4390141789fb181ceb
Time: 2017-02-22
Author: dima@gmail.com
File Name: tests/version_test.py
Class Name: VersionTestCase
Method Name: setUp