You should most definitely drive your Toyota Camry for at least one week before taking it in for the smog test. While your battery died, it erased the "emission monitors" which were recorded in your Camry's engine control unit - ECU (engine's computer). Without the emission monitors being "complete" or "ready", your Toyota can not pass a smog check.
We recommend driving for your Toyota for at least one week (300 miles) in all traffic conditions, highway and city; and while the gas tank is between 1/4 and 3/4 full. This will allow the ECU to perform the necessary self tests needed to set (make COMPLETE or READY) the emission monitors. You may then have the smog inspection administered.
For more information on how to perform a drive cycle on a Toyota Camry in order to complete the emission monitors follow the link.