General NYS inspection and OBD2 question

You can put the drivetrain in the car and as long as all the GM stuff is there it would run through the machine, but DMV will red flag the inspection. Then they would want to look at your car and probably have a shit fit. You might be alright since a 97 is pre VIN recognition for DMV. Either way the state gets pissy when you do stuff like that.