Rename deleted item in test
The backend may derive the item name from the UID (e.g. "event1.ics" from the UID "event1").
This commit is contained in:
parent
f1350717ce
commit
5660f70753
@ -133,13 +133,13 @@ class BaseRequestsMixIn:
|
|||||||
status, headers, answer = self.request("PUT", "/calendar.ics/", event)
|
status, headers, answer = self.request("PUT", "/calendar.ics/", event)
|
||||||
assert status == 201
|
assert status == 201
|
||||||
status, headers, answer = self.request(
|
status, headers, answer = self.request(
|
||||||
"PUT", "/calendar.ics/event1.ics", event)
|
"PUT", "/calendar.ics/test_event.ics", event)
|
||||||
assert status == 201
|
assert status == 201
|
||||||
# Overwrite
|
# Overwrite
|
||||||
status, headers, answer = self.request("PUT", "/calendar.ics/", event)
|
status, headers, answer = self.request("PUT", "/calendar.ics/", event)
|
||||||
assert status == 201
|
assert status == 201
|
||||||
status, headers, answer = self.request(
|
status, headers, answer = self.request(
|
||||||
"GET", "/calendar.ics/event1.ics")
|
"GET", "/calendar.ics/test_event.ics")
|
||||||
assert status == 404
|
assert status == 404
|
||||||
|
|
||||||
def test_delete(self):
|
def test_delete(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user