Skip to content

Improve tests#959

Merged
joernu76 merged 12 commits intoOpen-MSS:developfrom
ReimarBauer:improve_tests
May 17, 2021
Merged

Improve tests#959
joernu76 merged 12 commits intoOpen-MSS:developfrom
ReimarBauer:improve_tests

Conversation

@ReimarBauer
Copy link
Member

No description provided.

@ReimarBauer ReimarBauer marked this pull request as draft May 15, 2021 13:03
@ReimarBauer ReimarBauer marked this pull request as ready for review May 16, 2021 10:55
@ReimarBauer ReimarBauer requested review from Marilyth and joernu76 May 16, 2021 10:56
}


def os_fs_create_dir(dir):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mmh. I think we need to go to an fs-only approach in combination with validating/converting any path communicated from an external source (QT-dialogues, JSON files, etc.).

Good start in doing that.

MSS_CONFIG_PATH = os.getenv("MSS_CONFIG_PATH", os.path.join(HOME, ".config", "mss"))
if not os.path.exists(MSS_CONFIG_PATH):
os.makedirs(MSS_CONFIG_PATH)
if '://' in MSS_CONFIG_PATH:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs to be factored into a conversion/fs-validation routine.
Later.


self.view = view
self.load = Loader(MSS_CONFIG_PATH, verbose=False)
if '://' in MSS_CONFIG_PATH:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be moved. We need a "cache" directory here.
Later.

@joernu76 joernu76 merged commit 70d34f9 into Open-MSS:develop May 17, 2021
Marilyth pushed a commit to Marilyth/MSS that referenced this pull request May 21, 2021
* preparations for coverage tests

* ignore some more dirs

* enabled project delete tests

* added further utils tests, improved get_recent_pid

* improved tests, enabled skipped tests

* improved waypoint merge tests

* skipped random failing tests

* skyfield Loader files saved to fs dir

* fs or os makedirs

* flake8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants