APIs · head to head
Basis Theory vs pytest

Basis Theory
APIs
Developer tokenisation platform that holds card and sensitive data inside a PCI Level 1 environment you do not operate
- From
- $995/month
- Free plan
- No

pytest
Testing
Python testing framework maintained by an independent core team funded partly through Tidelift
- From
- Free
- Free plan
- Yes
The short version
- pytest is free; Basis Theory starts at $995/mo.
- Only Basis Theory lists tokenisation API; only pytest lists assert-based test syntax.
How do Basis Theory and pytest differ?
Basis Theory and pytest differ on starting price ($995/month against Free), pricing model and free tier (No against Yes). Only the attributes on which Basis Theory and pytest actually diverge.
| Attribute | Basis Theory | pytest |
|---|---|---|
| Starting price | $995/month | Free |
| Pricing model | Per month by token volume | Open source, no licence fee |
| Free tier | No | Yes |
| Platforms | Web, iOS, Android, Linux | Linux, macOS, Windows |
| Category | APIs | Testing |
Not yet recorded: founded for Basis Theory.
Which features does each one have?
They share no listed features; 8 appear only for Basis Theory and 6 only for pytest. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.
Only in Basis Theory
- Tokenisation API
- Hosted elements
- Outbound proxy
- PCI attestation of compliance
- Processor portability
- Reactors
- Access controls and audit
- PII and PHI options
Only in pytest
- Assert-based test syntax
- Fixture system
- Parametrised testing
- Plugin ecosystem
- Detailed assertion introspection
- Test discovery
What is each one used for?
The jobs each tool is most often brought in to do.
Basis Theory
- A payments company that wants card on file without bringing its own infrastructure into PCI scope and paying for the assessment that followsnot pytest
- A merchant locked into a processor by that processor vault that wants to hold its own tokens and route to more than one acquirernot pytest
- A fintech collecting bank account and identity data that needs it isolated from its application database before an enterprise security reviewnot pytest
- A team that needs to send stored card data to a third party for a one-off integration without that data traversing its own serversnot pytest
pytest
- A Python team moving off the standard library's unittest module for a less verbose, fixture-driven testing stylenot Basis Theory
- A project needing parametrised tests to cover many input combinations without duplicating test codenot Basis Theory
- A team wanting a large plugin ecosystem for coverage, async testing or Django-specific test supportnot Basis Theory
- An organisation wanting a commercial support and maintenance assurance layer via a Tidelift subscription rather than relying purely on community response timesnot Basis Theory
Where do Basis Theory and pytest fall short?
Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
Basis Theory
- The Starter plan is 995 US dollars a month before any volume, which is a real floor for an early stage company and puts the product out of reach of teams tokenising a few thousand records
- Starter is limited to the US region, so a company with European data residency requirements is pushed into a quoted Scale or Enterprise agreement immediately
- Log retention on Starter is 24 hours, which is well below what most security teams expect for a system holding cardholder data and forces an upgrade for reasons unrelated to volume
- Migrating away means moving card data out of the vault, which requires processor and assessor involvement and is slow, so the portability argument that attracts buyers cuts against them at exit
- An attestation of compliance covers the vendor environment, not your assessment; your assessor still decides what is in scope, and buyers occasionally discover their integration pattern pulled systems back into scope anyway
pytest
- There is no corporate owner or dedicated support organisation, so response time on bugs or security issues depends on volunteer maintainer availability unless a Tidelift subscription is purchased separately
- The plugin ecosystem's quality and maintenance level varies widely between plugins, and a team building a workflow around several plugins takes on the risk of any one of them going unmaintained
- Its assert-rewriting magic, while convenient, can behave unexpectedly in edge cases involving custom assert helpers, which occasionally confuses developers used to explicit assertion methods
- Large test suites with many fixtures can develop hard-to-trace fixture dependency chains, since fixtures can depend on other fixtures in ways that are not always obvious from a single test file
- Being free and volunteer-maintained, roadmap direction is set by contributor consensus rather than a company with commercial incentive to prioritise enterprise-requested features quickly
How much do Basis Theory and pytest cost?
Basis Theory starts at $995/mo; pytest is free to use. Plan by plan below, from each vendor's own pricing page.
Basis Theory
$995/month- Starter$995/mo
- 20,000 tokens included
- Production PCI Level 1 environment
- US region only
- ScaleOn request
- Quoted
- Higher token volumes
- Additional regions
- EnterpriseOn request
- Quoted
- Additional compliance options for PII and PHI
- Responses for 95 percent of PCI SAQ D
pytest
Free- pytestFree
- Full functionality, no usage limits
- Community support via GitHub
- Optional Tidelift subscription for a commercial support and licence assurance layer
Which should you pick?
Choose Basis Theory if
- You need tokenisation api.
- You work on Web, iOS, Android, Linux.
- You also want hosted elements.
Choose pytest if
- You need assert-based test syntax.
- You want to start without paying.
- You work on Linux, macOS, Windows.
- You also want fixture system.
Questions people ask
- Is Basis Theory or pytest better?
- It depends on the job. Basis Theory fits a payments company that wants card on file without bringing its own infrastructure into PCI scope and paying for the assessment that follows; pytest fits a Python team moving off the standard library's unittest module for a less verbose, fixture-driven testing style. Basis Theory starts at $995/month and pytest at Free.
- Which is cheaper, Basis Theory or pytest?
- pytest has a free tier; the other does not. Paid plans start at $995/month for Basis Theory and Free for pytest.
- Does Basis Theory or pytest run on more platforms?
- Basis Theory runs on Web, iOS, Android, Linux. pytest runs on Linux, macOS, Windows.
- Can I use pytest for free?
- Yes. pytest has a free tier, so you can try it without paying. Basis Theory starts at $995/month.
- What is Basis Theory best used for?
- Basis Theory is most often used for a payments company that wants card on file without bringing its own infrastructure into pci scope and paying for the assessment that follows, a merchant locked into a processor by that processor vault that wants to hold its own tokens and route to more than one acquirer, a fintech collecting bank account and identity data that needs it isolated from its application database before an enterprise security review, a team that needs to send stored card data to a third party for a one-off integration without that data traversing its own servers. Of those, a payments company that wants card on file without bringing its own infrastructure into pci scope and paying for the assessment that follows and a merchant locked into a processor by that processor vault that wants to hold its own tokens and route to more than one acquirer are not what pytest is typically brought in for.
- What can Basis Theory do that pytest cannot?
- Basis Theory covers Tokenisation API, Hosted elements, Outbound proxy, PCI attestation of compliance. pytest covers Assert-based test syntax, Fixture system, Parametrised testing, Plugin ecosystem.
Answered from the vendors’ own pages
Basis Theory: Does this make us PCI compliant?
It removes cardholder data from your systems and gives you an AOC plus documented responses for most of a SAQ D. Your assessor still determines your scope, and a careless integration can pull systems back in.
pytest: Is pytest owned by a company?
No, it is maintained by the pytest-dev volunteer community with no single corporate parent; some maintainers receive partial funding through Tidelift subscriptions.
Basis Theory: What does it cost to start?
995 US dollars a month on Starter, including 20,000 tokens, a production PCI Level 1 environment and US hosting. Higher tiers are quoted.
pytest: Is there a paid version?
No, pytest itself is free and open source; buyers can optionally pay for a Tidelift subscription for commercial assurance and support.
Basis Theory: Can we switch payment processors without re-collecting cards?
Yes, that is the main non-compliance reason to buy it. You hold the tokens and detokenise into whichever processor you route to.
pytest: Does it replace the standard library unittest module?
It does not replace unittest at the language level, but it is now the de facto standard choice for most Python projects over unittest's more verbose syntax.
Basis Theory: Is data stored outside the United States?
Not on Starter, which is US only. Other regions require a Scale or Enterprise agreement.
Related pages
More on Basis Theory
Other head to heads
- Basis Theory vs Skyflow
- Basis Theory vs Increase
- Basis Theory vs Lithic
- Basis Theory vs Volt
- Basis Theory vs Swan
- Basis Theory vs Trustly
- Basis Theory vs Moov
- Basis Theory vs Vodeno
- Basis Theory vs TrueLayer
- Basis Theory vs Paymentology
- Basis Theory vs Akoya
- Basis Theory vs Sila
- Basis Theory vs Yapily
- Basis Theory vs 10x Banking
- Basis Theory vs Appwrite
- Basis Theory vs Bruno
- Basis Theory vs Marqeta
- Basis Theory vs Temenos Transact
- Basis Theory vs JUnit
- Basis Theory vs TestNG
- Basis Theory vs Robot Framework
- Basis Theory vs Jest
- Basis Theory vs Vitest
- Basis Theory vs GrowthBook
- Basis Theory vs Detox
- Basis Theory vs Cucumber
- Basis Theory vs Selenium
- Basis Theory vs Puppeteer
- Basis Theory vs Zephyr Scale
- Basis Theory vs Gatling
- Basis Theory vs SoapUI
- Basis Theory vs Split
- Basis Theory vs Locust
- Basis Theory vs Percy
- Basis Theory vs WebdriverIO
- Basis Theory vs Appium
- pytest vs Skyflow
- pytest vs Increase
- pytest vs Lithic
- pytest vs Volt
- pytest vs Swan
- pytest vs Trustly
- pytest vs Moov
- pytest vs Vodeno
- pytest vs TrueLayer
- pytest vs Paymentology
- pytest vs Akoya
- pytest vs Sila
- pytest vs Yapily
- pytest vs 10x Banking
- pytest vs Appwrite
- pytest vs Bruno
- pytest vs Marqeta
- pytest vs Temenos Transact
- pytest vs JUnit
- pytest vs TestNG
- pytest vs Robot Framework
- pytest vs Jest
- pytest vs Vitest
- pytest vs GrowthBook
- pytest vs Detox
- pytest vs Cucumber
- pytest vs Selenium
- pytest vs Puppeteer
- pytest vs Zephyr Scale
- pytest vs Gatling
- pytest vs SoapUI
- pytest vs Split
- pytest vs Locust
- pytest vs Percy
- pytest vs WebdriverIO
- pytest vs Appium
