Categories
CMS Drupal Mastering Development

hook_menu_local_tasks_alter is not invoked during functional tests

I have an implementation of hook_menu_local_tasks_alter in my module, which works fine on my dev environment, but when I try to run my module using BrowserTestBase the hook is not invoked when visiting a node. Why? Here is a mock instance of the hook that I’ve set up just to see if the hook is […]

Categories
Mastering Development

python request.get not returning full file

I’m new to python. I have a list of files I want to download (static addresses ending in export.aspx?page=…..), and when I manually browse to them, it automatically downloads the full file to an .xls as expected. When I use requests, it successfully gets and creates the .xls, which includes the "header" and "footer" rows […]