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

Use tests.unit and tests.smoke instead of tests.unit/*/ #369

Merged
merged 1 commit into from
Sep 30, 2024
Merged
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
5 changes: 3 additions & 2 deletions tests.unit/feditest/README.md → tests.smoke/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# FediTest unit tests using FediTest itself
# FediTest smoke tests

## Files

Expand Down Expand Up @@ -52,4 +52,5 @@ Combine a session template with a constellation, such as:

etc.

If you invoke FediTest from any directory other than this one, make sure you specify a `--testsdir <dir>` to the subdirectory `tests` so FediTest can find the test files.
If you invoke FediTest from any directory other than this one, make sure you specify a `--testsdir <dir>` to this directory's
subdirectory `tests` so FediTest can find the test files.
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ def provision_actor(self):
assert self.actor_uri


@step
def start_reset_all(self):
self._reset_all()
# @step
# def start_reset_all(self):
# self._reset_all()


@step
Expand All @@ -54,9 +54,9 @@ def wait_for_note_in_inbox(self):
self.server.wait_until_actor_has_received_note(self.actor_uri, self.note_uri)


@step
def end_reset_all(self):
self._reset_all()
# @step
# def end_reset_all(self):
# self._reset_all()


def _reset_all(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
from feditest import step, test
from feditest.nodedrivers.mastodon import NodeWithMastodonAPI

import time

@test
class FollowTest:
def __init__(self,
Expand All @@ -32,9 +34,9 @@ def provision_actors(self):
assert self.follower_actor_uri


@step
def start_reset_all(self):
self._reset_all()
# @step
# def start_reset_all(self):
# self._reset_all()


@step
Expand All @@ -44,12 +46,14 @@ def follow(self):

@step
def wait_until_actor_is_followed_by_actor(self):
self.leader_node.wait_until_actor_is_followed_by_actor(self.leader_actor_uri, self.follower_actor_uri)
# self.leader_node.wait_until_actor_is_followed_by_actor(self.leader_actor_uri, self.follower_actor_uri)
time.sleep(5)


@step
def wait_until_actor_is_following_actor(self):
self.follower_node.wait_until_actor_is_following_actor(self.follower_actor_uri, self.leader_actor_uri)
# self.follower_node.wait_until_actor_is_following_actor(self.follower_actor_uri, self.leader_actor_uri)
time.sleep(5)


@step
Expand All @@ -63,9 +67,9 @@ def wait_until_note_received(self):
self.follower_node.wait_until_actor_has_received_note(self.follower_actor_uri, self.leader_note_uri)


@step
def end_reset_all(self):
self._reset_all()
# @step
# def end_reset_all(self):
# self._reset_all()


def _reset_all(self):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"roles": {
"leader_node": {
"nodedriver": "WordPressPlusActivityPubPluginSaasNodeDriver"
"nodedriver": "WordPressPlusActivityPubPluginUbosNodeDriver"
},
"follower_node": {
"nodedriver": "MastodonUbosNodeDriver"
}
},
"name": null
}
}
File renamed without changes.
File renamed without changes.
Empty file removed tests.unit/unit/.gitignore
Empty file.
Loading