mirror of
https://github.com/laramies/theHarvester.git
synced 2025-02-23 22:13:02 +08:00
debug info to see what github actions is doing
This commit is contained in:
parent
59ac74e629
commit
448aa402c4
1 changed files with 3 additions and 4 deletions
|
@ -1,22 +1,21 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# coding=utf-8
|
# coding=utf-8
|
||||||
import os
|
|
||||||
|
|
||||||
from theHarvester.lib.core import *
|
from theHarvester.lib.core import *
|
||||||
from theHarvester.discovery import omnisint
|
from theHarvester.discovery import omnisint
|
||||||
|
import os
|
||||||
import requests
|
import requests
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
pytestmark = pytest.mark.asyncio
|
pytestmark = pytest.mark.asyncio
|
||||||
github_ci = os.getenv('GITHUB_ACTIONS')
|
github_ci = os.getenv('GITHUB_ACTIONS')
|
||||||
|
print(github_ci)
|
||||||
|
|
||||||
class TestOmnisint(object):
|
class TestOmnisint(object):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def domain() -> str:
|
def domain() -> str:
|
||||||
return 'uber.com'
|
return 'uber.com'
|
||||||
|
|
||||||
@pytest.mark.skipif(github_ci == 'True', reason='Skipping on Github CI due unstable status code from site')
|
@pytest.mark.skipif(github_ci == 'True', reason='Skipping on Github CI due to unstable status code from site')
|
||||||
async def test_api(self):
|
async def test_api(self):
|
||||||
base_url = f'https://sonar.omnisint.io/all/{TestOmnisint.domain()}'
|
base_url = f'https://sonar.omnisint.io/all/{TestOmnisint.domain()}'
|
||||||
headers = {'User-Agent': Core.get_user_agent()}
|
headers = {'User-Agent': Core.get_user_agent()}
|
||||||
|
|
Loading…
Reference in a new issue