I have an a list of strings
like ["a", "b"]
. When I convert it to the string variable separated by ", "
it works fine when I test the test cases on the local machine via debugging
and tox
. It doesn't work fine in the pipeline once I commit the code on GitLab
. The order of elements gets reversed. Sometimes it is retained and sometimes not.
I am using the below code to convert it to a string variable:
drop_account_names = ", ".join(drop for drop in set(to_drop))
The output on my local machine when tested via tox and debugging of tests is correct i.e 'a', 'b'
However, on the Gitlab pipeline, I get it as 'b', 'a'
sometimes. Why is it so?