From a student perspective, generally no. I have taken online classes since circa 2004, some with proctored in-person tests at outside universities, some remotely using proctoring software, and some where I traveled upwards of 90 minutes to take the in-person test at the university I was attending online.
The language used to describe the course goes a long way. Consider calling the class a hybrid class if in-person attendance is required for part of it. At least in the US, online options are fully online so you could attend from the other side of the planet if desired. Hybrid classes allow for flexibility on from where to attend class, but also come with the expectation of some in-person experiences. In-person classes are 100% in person (even if recorded). A hybrid class clearly sets the in-person expectation up front as opposed to burying it somewhere in the course description.
Asking a student to change their location for a single test adds barriers to their one-and-done chance to showcase their skills. It is not a fair assessment of a student's knowledge in that subject. The travel alone is enough to disrupt one's ability to focus and can add undue stress, plus taking a test in a new environment can increase test anxiety.
If in-person tests are a requirement for reducing cheating, consider strongly recommending students to show up in-person more than once or twice a term. This will encourage students to a) learn the commute, b) develop good patterns around commuting, and c) learn the environment in which they are being tested. Once every other week for in person discussions or group exercises or even just lecture will do the trick. Even students who plan to take the test at different in-person location will benefit from having made the trip a handful of times before having a test placed in front of them. Instead of asking students to change their patterns for what is often a high stress moment already, encourage habits so that the high stress moment is about the stress you are measuring (their knowledge) and not the stress about the change in their patterns.
As I mentioned, I have had to travel for these one-off in-person tests. I prefer them to putting proctoring (aka, spy) software on my personal computer. That said, I've had tests were I had to travel to the university the day before and get a hotel for a night because the test schedule didn't work with my schedule (work, access to the shared vehicle, accounting for commute traffic, etc.) even though it was a financial hardship. I've had tests were I arrived to find that the test room was very very cold and I did not have a jacket handy. I've had tests where the HVAC was broken, causing "whining" sounds in the room that we all just had to deal with. These issues were noticeably distracting, and could have been mitigated by knowing the environment (including travel) in which I was testing before starting the test.