Councillors took an HIV test in a symbolic gesture to encourage people to take part in screening for the virus.
Pontefract North councillor Pat Garbutt and Coun Jean Askew, who represents Ackworth, North Elmsall and Upton, took the finger-prick blood test to mark World Aids Day.
Sexual health charity the Terrence Higgins Trust held drop-in sessions on Monday for people to have the tests at Agbrigg and Belle Vue Community Centre on Montague Street, Wakefield.
The charity said testing was free and confidential and results were available in within 20 minutes.
Phil Mason, acting centre manager for the Terrence Higgins Trust, said: “Anything that helps us to raise awareness of how quick and easy modern tests are is a good thing.
“We’re thrilled that the councillors are helping us to do this, and we look forward to telling them more about the work we do in Wakefield.”
World AIDS Day was set up in 1998 and to raise awareness of HIV and AIDS.
The Terrence Higgins Trust campaigns to halt prejudice against people with HIV and provides health checks, counselling.