Deleted
Added
test_static_fallback.py (1971:3410f9d2a662) | test_static_fallback.py (2066:242192963d93) |
---|---|
1import os 2from pathlib import Path 3 4import pytest 5from unit.applications.proto import TestApplicationProto 6 7 8class TestStaticFallback(TestApplicationProto): --- 68 unchanged lines hidden (view full) --- 77 ) 78 79 resp = self.get() 80 assert resp['status'] == 200, 'fallback nested status' 81 assert resp['body'] == '', 'fallback nested' 82 83 def test_static_fallback_share(self, temp_dir): 84 self.action_update( | 1import os 2from pathlib import Path 3 4import pytest 5from unit.applications.proto import TestApplicationProto 6 7 8class TestStaticFallback(TestApplicationProto): --- 68 unchanged lines hidden (view full) --- 77 ) 78 79 resp = self.get() 80 assert resp['status'] == 200, 'fallback nested status' 81 assert resp['body'] == '', 'fallback nested' 82 83 def test_static_fallback_share(self, temp_dir): 84 self.action_update( |
85 {"share": "/blah", "fallback": {"share": temp_dir + "/assets$uri"},} | 85 { 86 "share": "/blah", 87 "fallback": {"share": temp_dir + "/assets$uri"}, 88 } |
86 ) 87 88 resp = self.get() 89 assert resp['status'] == 200, 'fallback share status' 90 assert resp['body'] == '0123456789', 'fallback share' 91 92 resp = self.head() 93 assert resp['status'] == 200, 'fallback share status HEAD' --- 55 unchanged lines hidden --- | 89 ) 90 91 resp = self.get() 92 assert resp['status'] == 200, 'fallback share status' 93 assert resp['body'] == '0123456789', 'fallback share' 94 95 resp = self.head() 96 assert resp['status'] == 200, 'fallback share status HEAD' --- 55 unchanged lines hidden --- |