About 'stock_package_shipping_dpd'

CargoNET offers 2 shipping modes, one multi-package, the other single-package (even if there are several packages, in this mode it’s a sequence of single-packages).

For test writing, is it preferable to write 2 tests (1 per mode) or can the 2 modes go into a single test file?

It depends of the code tested. If for example it is just only a switch that being passed to the API, then there is no need to test both value. But for example if the result needs to be handled differently, then each path must be tested.

The result is treated differently, I know I have to write the 2 tests, but my question was do I put the 2 tests in a single file or do I write 1 file per test.

It is always better to have smaller scenario.
But in this case maybe you can use a json parameters.