Skip to content

test test test... #11

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

Open
wants to merge 4 commits into
base: rosiepi_test
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
CircuitPython
=============

Test pytest version 2: now clones the repo for each test, instead of maintaining a static clone...

.. image:: https://s3.amazonaws.com/adafruit-circuit-python/CircuitPython_Repo_header_logo.png

|Build Status| |Doc Status| |License| |Discord| |Weblate|
Expand Down
9 changes: 9 additions & 0 deletions tests/circuitpython/rosie_tests/analogio/test_analogio.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import pytest

def test_import(board):
""" Verify import successfully occurs.
"""
with board:
result = board.exec("import analogio")

assert "importerror" not in result.decode().lower()
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
def test_pytest_skip_board(board_name, board, capsys):
""" DEV: only used to test skipping by board_name
"""
if board_name in ["itsybitsy_m4_express"]:
if board_name in ["metro_m4_express"]:
pytest.skip()

with board:
Expand Down
5 changes: 3 additions & 2 deletions tools/cpboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,9 @@ def eval(self, expression, timeout=10, reset_repl=False):

def _reset(self, mode="NORMAL"):
self.exec(
"import microcontroller;microcontroller.on_next_reset(microcontroller.RunMode.%s)"
% mode
"import microcontroller;"
"microcontroller.on_next_reset(microcontroller.RunMode.%s)" % mode,
reset_repl=True
)
try:
self.exec(
Expand Down