Test that URL patterns are working, and that non-GitHub requests are not cached
()
| 77 | |
| 78 | |
| 79 | def test_non_github_requests(): |
| 80 | """Test that URL patterns are working, and that non-GitHub requests are not cached""" |
| 81 | response = requests.get('https://httpbin.org/json') |
| 82 | response = requests.get('https://httpbin.org/json') |
| 83 | from_cache = getattr(response, 'from_cache', False) |
| 84 | print(f'Non-GitHub requests cached: {from_cache}') |
| 85 | assert not from_cache |
| 86 | |
| 87 | |
| 88 | def check_cache(): |