When can I take pregnancy test?

I bled for 3 or so days before my period is due and it was way too light/not painful to be a period.