@@ -532,57 +532,6 @@ response = tca.fetch_openapi()
532532schema = response[" data" ] # The OpenAPI schema
533533```
534534
535- ## 🧪 Testing
536-
537- ### Unit Tests
538-
539- Run the unit tests that don't require an API token:
540-
541- ``` bash
542- pytest tests/test_client.py -m unit
543- ```
544-
545- ### Integration Tests
546-
547- The SDK includes comprehensive integration tests that make real API calls. To run them:
548-
549- 1 . ** Create a ` .env ` file** in the project root:
550- ``` bash
551- # Required: Your API token from https://www.thecompaniesapi.com/settings/api-tokens
552- TCA_API_TOKEN=your-api-token-here
553-
554- # Optional configurations
555- TCA_API_URL=https://api.thecompaniesapi.com
556- TCA_VISITOR_ID=your-visitor-id
557- TCA_TIMEOUT=30
558- ```
559-
560- 2 . ** Install test dependencies:**
561- ``` bash
562- pip install -e " .[test]"
563- ```
564-
565- 3 . ** Run integration tests:**
566- ``` bash
567- # Run all integration tests
568- pytest tests/test_integration.py -m integration -v
569-
570- # Run all tests except integration tests
571- pytest -m " not integration"
572-
573- # Run all tests (unit + integration)
574- pytest
575- ```
576-
577- The integration tests cover:
578- - Company search (GET and POST methods)
579- - Company counting and filtering
580- - Company lookup by email and domain
581- - Complex query serialization
582- - Error handling and edge cases
583- - Dynamic method access
584- - API health checks
585-
586535## 🔗 Links
587536
588537- [ The Companies API] ( https://www.thecompaniesapi.com )
0 commit comments