Add tests to cover reinstated support for guessing targets
Description
!1036 (merged) reinstated logic to guess the element when commands are run from an external workspace. That the functionality managed to go missing happened because the tests for tracking and fetching in an external workspace did not check the actual behaviour, just that the commands ran successfully.
Changes proposed in this merge request:
- tests/frontend/workspace.py::test_external_fetch now depends on an element that can be fetched, so
bst fetch
will fetch that depended-upon element. - tests/frontend/workspace.py::test_external_track now checks that the 'ref' field was added to the source after tracking.