Skip to content

Tests create .astropy directory #196

Closed

Description

@eteq

Because #187 makes it straightforward to run tests without any install, it's problematic that the tests create the astropy configuration directory (~/.astropy by default). This is probably fixable with some clever py.test tricks to fool the tests into using a temporary directory as the configuration directory.

Activity

  1. embray commented on Apr 11, 2012

    @embray
    Member

    I'm probably mistaken, but I thought this issue came up a little while back, and that you had implemented exactly this--using a temp dir for the tests instead of mucking with ~/.astropy.

  2. eteq commented on Apr 12, 2012

    @eteq
    MemberAuthor

    I can see why you're thinking that - I had to fix some tests that actually save configuration files - the problem here is that the code actually creates the config/cache directories (but not the files in them) - it's actually in the code that goes and looks for the directories.

  3. embray commented on Apr 12, 2012

    @embray
    Member

    I see what you're saying now.

  4. ghost assigned on Jun 14, 2012
  5. astrofrog commented on Jun 16, 2012

    @astrofrog
    Member

    Since #283 has been merged, can this be closed?

  6. eteq commented on Jun 16, 2012

    @eteq
    MemberAuthor

    Yep, forgot to use the magic "closes" phrase in one of the commits...

  7. added a commit that references this issue on Nov 23, 2016
  8. added a commit that references this issue on Jun 12, 2019
  9. added a commit that references this issue on Jul 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions