Test Connection for vintage lighting fitting
As a temporary test setup it's fine. Assuming that you know what you are doing and you monitor the thing while it's in use.

However the switch at the wall will probably only switch the live wire while the neutral will remain connected. So it'll be safer to pull the plug out of the wall when you go to mess with the connections.