ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful. 2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication. 3. Paste your code athttp://pastebin.comorhttp://gist.github.comand send only the URL via email 4. For sending images, usehttp://imgur.comor other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful. 2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication. 3. Paste your code athttp://pastebin.comorhttp://gist.github.comand send only the URL via email 4. For sending images, usehttp://imgur.comor other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful. 2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication. 3. Paste your code athttp://pastebin.comorhttp://gist.github.comand send only the URL via email 4. For sending images, usehttp://imgur.comor other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
Yeah, that works but the fixtures include all the data records as well. If there is no records, however, the csv file won't contain the custom field.
I am trying to set up mock data for the test, but it is really a pain cos of all the validation links... In order to add Item, I need to have Supplier -> Supplier Type ...... Is there a way to bypass the validations cos in the end that's not what I wanna test ?
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful. 2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication. 3. Paste your code athttp://pastebin.comorhttp://gist.github.comand send only the URL via email 4. For sending images, usehttp://imgur.comor other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful. 2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication. 3. Paste your code athttp://pastebin.comorhttp://gist.github.comand send only the URL via email 4. For sending images, usehttp://imgur.comor other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful. 2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication. 3. Paste your code athttp://pastebin.comorhttp://gist.github.comand send only the URL via email 4. For sending images, usehttp://imgur.comor other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
On 13-Aug-2014, at 3:44 pm, Nguyen Do Le Bao <na...@gmail.com> wrote:
Yeah, that works but the fixtures include all the data records as well. If there is no records, however, the csv file won't contain the custom field.
Should work - can't understand why...
I am trying to set up mock data for the test, but it is really a pain cos of all the validation links... In order to add Item, I need to have Supplier -> Supplier Type ...... Is there a way to bypass the validations cos in the end that's not what I wanna test ?
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful. 2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication. 3. Paste your code athttp://pastebin.comorhttp://gist.github.comand send only the URL via email 4. For sending images, usehttp://imgur.comor other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful. 2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication. 3. Paste your code athttp://pastebin.comorhttp://gist.github.comand send only the URL via email 4. For sending images, usehttp://imgur.comor other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful. 2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication. 3. Paste your code athttp://pastebin.comorhttp://gist.github.comand send only the URL via email 4. For sending images, usehttp://imgur.comor other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
So far, setting up all the data necessary for the testing is still quite a pain.
So i am going with another solution, just use Postman Chrome App to test the APIs (they do have automation tool)... Will get back to this some other time...
On Wednesday, August 13, 2014 11:50:00 PM UTC+8, rushabh wrote:
On 13-Aug-2014, at 3:44 pm, Nguyen Do Le Bao <na...@gmail.com> wrote:
Yeah, that works but the fixtures include all the data records as well. If there is no records, however, the csv file won't contain the custom field.
Should work - can't understand why...
I am trying to set up mock data for the test, but it is really a pain cos of all the validation links... In order to add Item, I need to have Supplier -> Supplier Type ...... Is there a way to bypass the validations cos in the end that's not what I wanna test ?
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful. 2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication. 3. Paste your code athttp://pastebin.comorhttp://gist.github.comand send only the URL via email 4. For sending images, usehttp://imgur.comor other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful. 2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication. 3. Paste your code athttp://pastebin.comorhttp://gist.github.comand send only the URL via email 4. For sending images, usehttp://imgur.comor other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful. 2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication. 3. Paste your code athttp://pastebin.comorhttp://gist.github.comand send only the URL via email 4. For sending images, usehttp://imgur.comor other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
So far, setting up all the data necessary for the testing is still quite a pain.
So i am going with another solution, just use Postman Chrome App to test the APIs (they do have automation tool)... Will get back to this some other time...
On Wednesday, August 13, 2014 11:50:00 PM UTC+8, rushabh wrote:
On 13-Aug-2014, at 3:44 pm, Nguyen Do Le Bao <na...@gmail.com> wrote:
Yeah, that works but the fixtures include all the data records as well. If there is no records, however, the csv file won't contain the custom field.
Should work - can't understand why...
I am trying to set up mock data for the test, but it is really a pain cos of all the validation links... In order to add Item, I need to have Supplier -> Supplier Type ...... Is there a way to bypass the validations cos in the end that's not what I wanna test ?
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful. 2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication. 3. Paste your code athttp://pastebin.comorhttp://gist.github.comand send only the URL via email 4. For sending images, usehttp://imgur.comor other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful. 2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication. 3. Paste your code athttp://pastebin.comorhttp://gist.github.comand send only the URL via email 4. For sending images, usehttp://imgur.comor other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful. 2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication. 3. Paste your code athttp://pastebin.comorhttp://gist.github.comand send only the URL via email 4. For sending images, usehttp://imgur.comor other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
So far, setting up all the data necessary for the testing is still quite a pain.
So i am going with another solution, just use Postman Chrome App to test the APIs (they do have automation tool)... Will get back to this some other time...
On Wednesday, August 13, 2014 11:50:00 PM UTC+8, rushabh wrote:
On 13-Aug-2014, at 3:44 pm, Nguyen Do Le Bao <na...@gmail.com> wrote:
Yeah, that works but the fixtures include all the data records as well. If there is no records, however, the csv file won't contain the custom field.
Should work - can't understand why...
I am trying to set up mock data for the test, but it is really a pain cos of all the validation links... In order to add Item, I need to have Supplier -> Supplier Type ...... Is there a way to bypass the validations cos in the end that's not what I wanna test ?
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful. 2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication. 3. Paste your code athttp://pastebin.comorhttp://gist.github.comand send only the URL via email 4. For sending images, usehttp://imgur.comor other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful. 2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication. 3. Paste your code athttp://pastebin.comorhttp://gist.github.comand send only the URL via email 4. For sending images, usehttp://imgur.comor other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful. 2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication. 3. Paste your code athttp://pastebin.comorhttp://gist.github.comand send only the URL via email 4. For sending images, usehttp://imgur.comor other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
Hey sorry for bother you guys on this ... but I still cannot do this:
Under frappe-bench/sites, I run:
frappe --export_fixtures app_name
It return the following error:
Traceback (most recent call last): File "/Applications/MAMP/htdocs/source_code/MyProject/new-bench/frappe-bench/env/bin/frappe", line 9, in <module> load_entry_point('frappe==4.1.0', 'console_scripts', 'frappe')() File "/Applications/MAMP/htdocs/source_code/MyProject/new-bench/frappe-bench/apps/frappe/frappe/cli.py", line 53, in main return run(fn, parsed_args) File "/Applications/MAMP/htdocs/source_code/MyProject/new-bench/frappe-bench/apps/frappe/frappe/cli.py", line 83, in run out = globals().get(fn)(**args) File "/Applications/MAMP/htdocs/source_code/MyProject/new-bench/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fn return fn(*args, **new_kwargs) File "/Applications/MAMP/htdocs/source_code/MyProject/new-bench/frappe-bench/apps/frappe/frappe/cli.py", line 669, in export_fixtures export_fixtures() File "/Applications/MAMP/htdocs/source_code/MyProject/new-bench/frappe-bench/apps/frappe/frappe/utils/fixtures.py", line 23, in export_fixtures for app in frappe.get_installed_apps(): File "/Applications/MAMP/htdocs/source_code/MyProject/new-bench/frappe-bench/apps/frappe/frappe/__init__.py", line 416, in get_installed_apps installed = json.loads(db.get_global("installed_apps") or "[]") File "/Applications/MAMP/htdocs/source_code/MyProject/new-bench/frappe-bench/apps/frappe/frappe/database.py", line 444, in get_global return self.get_default(key, user) File "/Applications/MAMP/htdocs/source_code/MyProject/new-bench/frappe-bench/apps/frappe/frappe/database.py", line 457, in get_default d = frappe.defaults.get_defaults(parent).get(key) File "/Applications/MAMP/htdocs/source_code/MyProject/new-bench/frappe-bench/apps/frappe/frappe/defaults.py", line 52, in get_defaults userd = get_defaults_for(user) File "/Applications/MAMP/htdocs/source_code/MyProject/new-bench/frappe-bench/apps/frappe/frappe/defaults.py", line 140, in get_defaults_for defaults = frappe.cache().get_value("__defaults:" + parent) File "/Applications/MAMP/htdocs/source_code/MyProject/new-bench/frappe-bench/apps/frappe/frappe/memc.py", line 19, in get_value val = self.get(self.n(key)) File "/Applications/MAMP/htdocs/source_code/MyProject/new-bench/frappe-bench/apps/frappe/frappe/memc.py", line 10, in n return (frappe.conf.db_name + ":" + key.replace(" ", "_")).encode('utf-8') TypeError: unsupported operand type(s) for +: 'NoneType' and 'unicode'
Which i guess that it cannot find the db_name ? I did set the default site config using bench
Exporting fixtures from app doesn't work, but export from the site totally works:
frappe --export_fixtures site_name
Just that in that case I will need to put everything under frappe/hook.py, which certainly is not ideal.
Thanks a lot!
On Friday, September 12, 2014 1:29:21 PM UTC+8, rushabh wrote:
On 12-Sep-2014, at 9:08 am, Nguyen Do Le Bao <na...@gmail.com> wrote:
A slightly different question: How to export an app and its db ? I can push to a git repo the code but how's about the default data ?
Thanks!!
Add to fixtures in hooks.py as "fixtures = ["DocType1", "DocType2"]
and
frappe --export_fixtures app_name
fixtures will be synced / updated with frappe --latest
On Friday, August 15, 2014 5:01:03 PM UTC+8, Nguyen Do Le Bao wrote:
Yeah, I have no doubt that the default test for purchase_order works.
So far, setting up all the data necessary for the testing is still quite a pain.
So i am going with another solution, just use Postman Chrome App to test the APIs (they do have automation tool)... Will get back to this some other time...
On Wednesday, August 13, 2014 11:50:00 PM UTC+8, rushabh wrote:
On 13-Aug-2014, at 3:44 pm, Nguyen Do Le Bao <na...@gmail.com> wrote:
Yeah, that works but the fixtures include all the data records as well. If there is no records, however, the csv file won't contain the custom field.
Should work - can't understand why...
I am trying to set up mock data for the test, but it is really a pain cos of all the validation links... In order to add Item, I need to have Supplier -> Supplier Type ...... Is there a way to bypass the validations cos in the end that's not what I wanna test ?
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful. 2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication. 3. Paste your code athttp://pastebin.comorhttp://gist.github.comand send only the URL via email 4. For sending images, usehttp://imgur.comor other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful. 2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication. 3. Paste your code athttp://pastebin.comorhttp://gist.github.comand send only the URL via email 4. For sending images, usehttp://imgur.comor other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful. 2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication. 3. Paste your code athttp://pastebin.comorhttp://gist.github.comand send only the URL via email 4. For sending images, usehttp://imgur.comor other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
On 15-Sep-2014, at 3:30 pm, Nguyen Do Le Bao <na...@gmail.com> wrote:
Hey sorry for bother you guys on this ... but I still cannot do this:
Under frappe-bench/sites, I run:
frappe --export_fixtures app_name
It return the following error:
Traceback (most recent call last): File "/Applications/MAMP/htdocs/source_code/MyProject/new-bench/frappe-bench/env/bin/frappe", line 9, in <module> load_entry_point('frappe==4.1.0', 'console_scripts', 'frappe')() File "/Applications/MAMP/htdocs/source_code/MyProject/new-bench/frappe-bench/apps/frappe/frappe/cli.py", line 53, in main return run(fn, parsed_args) File "/Applications/MAMP/htdocs/source_code/MyProject/new-bench/frappe-bench/apps/frappe/frappe/cli.py", line 83, in run out = globals().get(fn)(**args) File "/Applications/MAMP/htdocs/source_code/MyProject/new-bench/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fn return fn(*args, **new_kwargs) File "/Applications/MAMP/htdocs/source_code/MyProject/new-bench/frappe-bench/apps/frappe/frappe/cli.py", line 669, in export_fixtures export_fixtures() File "/Applications/MAMP/htdocs/source_code/MyProject/new-bench/frappe-bench/apps/frappe/frappe/utils/fixtures.py", line 23, in export_fixtures for app in frappe.get_installed_apps(): File "/Applications/MAMP/htdocs/source_code/MyProject/new-bench/frappe-bench/apps/frappe/frappe/__init__.py", line 416, in get_installed_apps installed = json.loads(db.get_global("installed_apps") or "[]") File "/Applications/MAMP/htdocs/source_code/MyProject/new-bench/frappe-bench/apps/frappe/frappe/database.py", line 444, in get_global return self.get_default(key, user) File "/Applications/MAMP/htdocs/source_code/MyProject/new-bench/frappe-bench/apps/frappe/frappe/database.py", line 457, in get_default d = frappe.defaults.get_defaults(parent).get(key) File "/Applications/MAMP/htdocs/source_code/MyProject/new-bench/frappe-bench/apps/frappe/frappe/defaults.py", line 52, in get_defaults userd = get_defaults_for(user) File "/Applications/MAMP/htdocs/source_code/MyProject/new-bench/frappe-bench/apps/frappe/frappe/defaults.py", line 140, in get_defaults_for defaults = frappe.cache().get_value("__defaults:" + parent) File "/Applications/MAMP/htdocs/source_code/MyProject/new-bench/frappe-bench/apps/frappe/frappe/memc.py", line 19, in get_value val = self.get(self.n(key)) File "/Applications/MAMP/htdocs/source_code/MyProject/new-bench/frappe-bench/apps/frappe/frappe/memc.py", line 10, in n return (frappe.conf.db_name + ":" + key.replace(" ", "_")).encode('utf-8') TypeError: unsupported operand type(s) for +: 'NoneType' and 'unicode'
Which i guess that it cannot find the db_name ? I did set the default site config using bench
Exporting fixtures from app doesn't work, but export from the site totally works:
frappe --export_fixtures site_name
Thats the way its supposed to work at the moment!
Just that in that case I will need to put everything under frappe/hook.py, which certainly is not ideal.
Thanks a lot!
On Friday, September 12, 2014 1:29:21 PM UTC+8, rushabh wrote:
On 12-Sep-2014, at 9:08 am, Nguyen Do Le Bao <na...@gmail.com> wrote:
A slightly different question: How to export an app and its db ? I can push to a git repo the code but how's about the default data ?
Thanks!!
Add to fixtures in hooks.py as "fixtures = ["DocType1", "DocType2"]
and
frappe --export_fixtures app_name
fixtures will be synced / updated with frappe --latest
On Friday, August 15, 2014 5:01:03 PM UTC+8, Nguyen Do Le Bao wrote:
Yeah, I have no doubt that the default test for purchase_order works.
So far, setting up all the data necessary for the testing is still quite a pain.
So i am going with another solution, just use Postman Chrome App to test the APIs (they do have automation tool)... Will get back to this some other time...
On Wednesday, August 13, 2014 11:50:00 PM UTC+8, rushabh wrote:
On 13-Aug-2014, at 3:44 pm, Nguyen Do Le Bao <na...@gmail.com> wrote:
Yeah, that works but the fixtures include all the data records as well. If there is no records, however, the csv file won't contain the custom field.
Should work - can't understand why...
I am trying to set up mock data for the test, but it is really a pain cos of all the validation links... In order to add Item, I need to have Supplier -> Supplier Type ...... Is there a way to bypass the validations cos in the end that's not what I wanna test ?
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful. 2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication. 3. Paste your code athttp://pastebin.comorhttp://gist.github.comand send only the URL via email 4. For sending images, usehttp://imgur.comor other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful. 2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication. 3. Paste your code athttp://pastebin.comorhttp://gist.github.comand send only the URL via email 4. For sending images, usehttp://imgur.comor other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful. 2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication. 3. Paste your code athttp://pastebin.comorhttp://gist.github.comand send only the URL via email 4. For sending images, usehttp://imgur.comor other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.