I visited the MINI production line in Oxford, UK a couple of times and watched this process……
The entire brake system is complete, not sure which part of the production line as it loops around.
A fitting is then attached to the brake reservoir and a powerful vacuum applied (not sure how strong a vacuum).
Once all the system is in vacuum a pre-determined volume of brake fluid is automatically added at this station. The vacuum basically ‘sucks’ the fluid right through the system. The fluid doesn’t contact the atmosphere which is a good thing. The filling mechanism is removed.
The reservoir cover is fitted, job done.
A benefit of this - if there are any leaks the system won’t achieve full vacuum so the fault can be fixed immediately.