Skip to content

Commit

Permalink
style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tobixen committed Apr 13, 2024
1 parent 65f0b5d commit e342e1c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_caldav_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,10 @@ def testRequestCustomHeaders(self, mocked):
mocked().status_code = 200
mocked().headers = {}
cal_url = "http://me:hunter2@calendar.møøh.example:80/"
client = DAVClient(url=cal_url, headers={"X-NC-CalDAV-Webcal-Caching": "On", "User-Agent": "MyCaldavApp"})
client = DAVClient(
url=cal_url,
headers={"X-NC-CalDAV-Webcal-Caching": "On", "User-Agent": "MyCaldavApp"},
)
assert client.headers["Content-Type"] == "text/xml"
assert client.headers["X-NC-CalDAV-Webcal-Caching"] == "On"
## User-Agent would be overwritten by some boring default in earlier versions
Expand Down

0 comments on commit e342e1c

Please sign in to comment.