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

add test for anti_flood_ftpd.py demo script. #416

Closed
wants to merge 1 commit into from
Closed

add test for anti_flood_ftpd.py demo script. #416

wants to merge 1 commit into from

Conversation

hramezani
Copy link

I also add tests for other demo scripts soon.

Makefile Outdated
@@ -106,6 +106,9 @@ test-ioloop: install
test-servers: install
$(PYTHON) pyftpdlib/test/test_servers.py

test-servers: install
$(PYTHON) pyftpdlib/test/test_demo_scripts.py

Copy link
Owner

Choose a reason for hiding this comment

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

There is already a make command with this name. You should rename this to test-demos

super(ThreadedTestFTPd, self).__init__(
poll_interval=self.poll_interval)
if handler:
self.handler = handler
Copy link
Owner

Choose a reason for hiding this comment

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

I prefer not to do this. You can simply setattr the handler later against this object

@hramezani
Copy link
Author

@giampaolo i fix the problems. i change the __init__ of ThreadedTestFTPd. do you like it?

@hramezani
Copy link
Author

@giampaolo any update?

@hramezani hramezani closed this Jun 25, 2020
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.

None yet

2 participants