Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(tests): Updates pytest fixture and Path uses - no functional change #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

doublethefish
Copy link

Here we update API calls to use the latest reccomended:

  • all 'testdir' fixtures now use the prefered 'pytester' fixture (the
    same in all usecases for pytest-black).
  • all 'Path.write' uses now use the more explicit `Path.write_text' api
    instead.
  • we replace makefile("pyproject.toml", ... with makepyprojecttoml(
    which is clearly defined just for this usecase.

There should be no functional change with this patch, except that older
python versions are probably no longer supported.

Here we update API calls to use the latest reccomended:
 * all 'testdir' fixtures now use the prefered 'pytester' fixture (the
   same in all usecases for pytest-black).
 * all 'Path.write' uses now use the more explicit `Path.write_text' api
   instead.
 * we replace `makefile("pyproject.toml", ...` with `makepyprojecttoml(`
   which is clearly defined just for this usecase.

There should be no functional change with this patch, except that older
python versions are probably no longer supported.
@rbebb
Copy link

rbebb commented Jul 15, 2022

This looks good to me. Let's just make sure the CI pipeline completes so that we know that it still works on the versions of Python that this project supports.

@doublethefish
Copy link
Author

Let's just make sure the CI pipeline completes

Is there any thing I need to do?

@rbebb
Copy link

rbebb commented Jul 15, 2022

@doublethefish It looks like the site they were using for testing (travis-ci.org) is no longer active. I created a ticket to get testing up and running again: #60. Someone with write access to the repo needs to do it though.

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