I’m really struggling with creating robust tests for my frontend because of the coupling in data schema between my backend and frontend.
To clarify, I have a Django rest API and I have a front end that queries serialized forms of my Django API backend models. When I want to generate test data for my backend, I use a factory (factory_boy library) to easily create model instance I can test on.
In my front end, the data passed around is assumed to have the same structure as the backend models. Whenever I change something in my backend models, I have to change my front end to fit the new structure. So how do I create robust front end test data if changing my backend models means I have to rewrite all my test data?
Should I replicate the factory pattern I have in the backend? Is there a best practice to avoid having to maintain two factory replicas?
I’ve considered a possible solution but that would likely involve a lot of extra work unless there’s a library out there that does this already: Create endpoints in my backend that return output from my model factories and that can be accept json data to overwrite the defaults on the factory. My front end can then call these to generate test data during test set up.
✓ Extra quality
ExtraProxies brings the best proxy quality for you with our private and reliable proxies
✓ Extra anonymity
Top level of anonymity and 100% safe proxies – this is what you get with every proxy package
✓ Extra speed
1,ooo mb/s proxy servers speed – we are way better than others – just enjoy our proxies!
USA proxy location
We offer premium quality USA private proxies – the most essential proxies you can ever want from USA
Our proxies have TOP level of anonymity + Elite quality, so you are always safe and secure with your proxies
Use your proxies as much as you want – we have no limits for data transfer and bandwidth, unlimited usage!
Superb fast proxy servers with 1,000 mb/s speed – sit back and enjoy your lightning fast private proxies!
99,9% servers uptime
Alive and working proxies all the time – we are taking care of our servers so you can use them without any problems
No usage restrictions
You have freedom to use your proxies with every software, browser or website you want without restrictions
Perfect for SEO
We are 100% friendly with all SEO tasks as well as internet marketing – feel the power with our proxies
Buy more proxies and get better price – we offer various proxy packages with great deals and discounts
We are working 24/7 to bring the best proxy experience for you – we are glad to help and assist you!