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

ERROR: File not found #154

Closed
kilinkis opened this issue Jun 15, 2020 · 3 comments
Closed

ERROR: File not found #154

kilinkis opened this issue Jun 15, 2020 · 3 comments

Comments

@kilinkis
Copy link

kilinkis commented Jun 15, 2020

Hello, and thanks for this very useful package :)

I'm having problems to run it for the first time:
I copied the example from the documentation, and also tried existing users and channels, but always get the same error on the hook.

For the hook, if I use the cURL example provided by Slack, it works fine.
I created a basic slack hook with "Incoming Webhooks, Bots and Permissions enabled".

this error I see

pytest test_main_page.py  –slack_hook=https://hooks.slack.com/services/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 –slack_channel=test_report_channel –slack_username=”Regression testing results”
==================================================================== test session starts ====================================================================
platform darwin -- Python 3.7.2, pytest-5.3.5, py-1.7.0, pluggy-0.13.1
rootdir: /Users/myuser/website-tests
plugins: xdist-1.26.0, timeout-1.3.3, teamcity-messages-1.21, rerunfailures-8.0, curl-report-0.5.4, slack-2.2.0, forked-1.0.1
collected 0 items                                                                                                                                           

=================================================================== no tests ran in 0.01s ===================================================================
ERROR: file not found: –slack_hook=https://hooks.slack.com/services/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igwo

any ideas? thanks!

@LaserPhaser
Copy link
Member

@kilinkis Have you tried to use "--" double minus?
--slack_hook=

@kilinkis
Copy link
Author

kilinkis commented Jun 15, 2020

I haven't then but I have now, I ran it like this and still got the same error :(

pytest test_main_page.py –-slack_hook=https://hooks.slack.com/services/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eZlgLO --slack_channel=test_report_channel –-slack_username=”Regression testing results”

@kilinkis
Copy link
Author

kilinkis commented Jun 16, 2020

okay, this one worked for me:

pytest test_main_page.py --slack_hook=https://hooks.slack.com/services/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0Zigwo --slack_channel=test_report_channel --slack_username="Regression testing results"

it seems like one of the dashes characters in the first one, was not really a dash but some other similar looking entity.

thanks!

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

No branches or pull requests

2 participants